Class SpirvReflection
- Namespace
- NeoVeldrid.SPIRV
- Assembly
- NeoVeldrid.SPIRV.dll
Contains information about the vertex attributes and resource types, and their binding slots, for a compiled set of shaders.
public class SpirvReflection
- Inheritance
-
SpirvReflection
- Inherited Members
Constructors
SpirvReflection(VertexElementDescription[], ResourceLayoutDescription[])
Constructs a new SpirvReflection instance.
[JsonConstructor]
public SpirvReflection(VertexElementDescription[] vertexElements, ResourceLayoutDescription[] resourceLayouts)
Parameters
vertexElementsVertexElementDescription[]resourceLayoutsResourceLayoutDescription[]
Properties
ResourceLayouts
An array containing a description of each set of resources used by the compiled shader set.
public ResourceLayoutDescription[] ResourceLayouts { get; }
Property Value
VertexElements
An array containing a description of each vertex element that is used by the compiled shader set. This array will be empty for compute shaders.
public VertexElementDescription[] VertexElements { get; }
Property Value
Methods
LoadFromJson(Stream)
Loads a SpirvReflection object from a serialized JSON stream.
public static SpirvReflection LoadFromJson(Stream jsonStream)
Parameters
jsonStreamStreamThe stream of serialized JSON text.
Returns
- SpirvReflection
A new SpirvReflection object, deserialized from the stream.
LoadFromJson(string)
Loads a SpirvReflection object from a serialized JSON file at the given path.
public static SpirvReflection LoadFromJson(string jsonPath)
Parameters
jsonPathstringThe path to the JSON file.
Returns
- SpirvReflection
A new SpirvReflection object, deserialized from the file.