Table of Contents

Class ShaderBytecode

Namespace
Stride.Shaders
Assembly
Stride.Shaders.dll

The bytecode of an effect.

[DataContract]
public class ShaderBytecode
Inheritance
ShaderBytecode

Constructors

ShaderBytecode()

Initializes a new instance of the ShaderBytecode class.

public ShaderBytecode()

ShaderBytecode(ObjectId, byte[])

Initializes a new instance of the ShaderBytecode class.

public ShaderBytecode(ObjectId id, byte[] data)

Parameters

id ObjectId
data byte[]

The data.

Fields

Stage

The stage of this Bytecode.

public ShaderStage Stage

Field Value

ShaderStage

Properties

Data

Gets the shader data that should be used to create the Shader.

public byte[] Data { get; set; }

Property Value

byte[]

The shader data.

Id

Hash of the Data.

public ObjectId Id { get; set; }

Property Value

ObjectId

Methods

Clone()

Shallow clones this instance.

public ShaderBytecode Clone()

Returns

ShaderBytecode

ShaderBytecode.

GetDataAsString()

Gets the data as a string.

public string GetDataAsString()

Returns

string

System.String.

Operators

implicit operator byte[](ShaderBytecode)

Performs an implicit conversion from ShaderBytecode to byte.

public static implicit operator byte[](ShaderBytecode shaderBytecode)

Parameters

shaderBytecode ShaderBytecode

The shader bytecode.

Returns

byte[]

The result of the conversion.