Class CompiledShader
- Namespace
- ShadowDusk.Core
- Assembly
- ShadowDusk.Core.dll
The successful output of CompileAsync(string, CompilerOptions, CancellationToken): the compiled effect
bytes together with the platform they were produced for. For MonoGame/KNI targets the
bytes are a .mgfx effect; for Fna they are the D3D9
fx_2_0 effects binary (.fxb). Either way they can be written to a file or fed
directly to the consumer runtime's Effect constructor.
public sealed record CompiledShader : IEquatable<CompiledShader>
- Inheritance
-
CompiledShader
- Implements
- Inherited Members
Constructors
CompiledShader(PlatformTarget, byte[])
The successful output of CompileAsync(string, CompilerOptions, CancellationToken): the compiled effect
bytes together with the platform they were produced for. For MonoGame/KNI targets the
bytes are a .mgfx effect; for Fna they are the D3D9
fx_2_0 effects binary (.fxb). Either way they can be written to a file or fed
directly to the consumer runtime's Effect constructor.
public CompiledShader(PlatformTarget Target, byte[] Data)
Parameters
TargetPlatformTargetThe platform backend the effect was compiled for.
Databyte[]The compiled effect bytes, ready to load into the target runtime's
Effect.
Properties
Data
The compiled effect bytes, ready to load into the target runtime's Effect.
public byte[] Data { get; init; }
Property Value
- byte[]
Target
The platform backend the effect was compiled for.
public PlatformTarget Target { get; init; }