Table of Contents

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

vertexElements VertexElementDescription[]
resourceLayouts ResourceLayoutDescription[]

Properties

ResourceLayouts

An array containing a description of each set of resources used by the compiled shader set.

public ResourceLayoutDescription[] ResourceLayouts { get; }

Property Value

ResourceLayoutDescription[]

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

VertexElementDescription[]

Methods

LoadFromJson(Stream)

Loads a SpirvReflection object from a serialized JSON stream.

public static SpirvReflection LoadFromJson(Stream jsonStream)

Parameters

jsonStream Stream

The 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

jsonPath string

The path to the JSON file.

Returns

SpirvReflection

A new SpirvReflection object, deserialized from the file.