Class PlatformBlob
- Namespace
- ShadowDusk.HLSL.Dxc
- Assembly
- ShadowDusk.HLSL.dll
A compiled platform shader blob plus a tag describing what kind of bytecode it holds. Produced by the HLSL backends (DxcShaderCompiler for SPIR-V/DXIL, the DXBC backends for SM5 DXBC and SM1-3 D3D9 bytecode) and consumed by the reflection and effect-writing stages.
public sealed class PlatformBlob
- Inheritance
-
PlatformBlob
- Inherited Members
Constructors
PlatformBlob(BlobKind, ReadOnlyMemory<byte>)
Creates a blob of the given kind wrapping bytes.
public PlatformBlob(BlobKind kind, ReadOnlyMemory<byte> bytes)
Parameters
kindBlobKindbytesReadOnlyMemory<byte>
Properties
Bytes
The raw compiled bytecode.
public ReadOnlyMemory<byte> Bytes { get; }
Property Value
Kind
What kind of bytecode Bytes contains.
public BlobKind Kind { get; }