Class ShaderBytecode
The bytecode of an effect.
[DataContract]
public class ShaderBytecode
  - Inheritance
 - 
      objectShaderBytecode
 
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
Fields
Stage
The stage of this Bytecode.
public ShaderStage Stage
  Field Value
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
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
shaderBytecodeShaderBytecodeThe shader bytecode.
Returns
- byte[]
 The result of the conversion.