Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Paradox.Shaders.ShaderBytecode Class Reference

The bytecode of an effect. More...

Public Member Functions

 ShaderBytecode ()
 Initializes a new instance of the ShaderBytecode class. More...
 
 ShaderBytecode (ObjectId id, byte[] data)
 Initializes a new instance of the ShaderBytecode class. More...
 
string GetDataAsString ()
 Gets the data as a string. More...
 

Static Public Member Functions

static implicit operator byte[] (ShaderBytecode shaderBytecode)
 Performs an implicit conversion from ShaderBytecode to System.Byte[][]. More...
 

Public Attributes

ShaderStage Stage
 The stage of this Bytecode. More...
 

Properties

ObjectId Id [get, set]
 Hash of the Data. More...
 
byte[] Data [get, set]
 Gets the shader data that should be used to create the Shader. More...
 

Detailed Description

The bytecode of an effect.

Definition at line 14 of file ShaderBytecode.cs.

Constructor & Destructor Documentation

SiliconStudio.Paradox.Shaders.ShaderBytecode.ShaderBytecode ( )

Initializes a new instance of the ShaderBytecode class.

Definition at line 37 of file ShaderBytecode.cs.

SiliconStudio.Paradox.Shaders.ShaderBytecode.ShaderBytecode ( ObjectId  id,
byte[]  data 
)

Initializes a new instance of the ShaderBytecode class.

Parameters
dataThe data.

Definition at line 45 of file ShaderBytecode.cs.

Member Function Documentation

string SiliconStudio.Paradox.Shaders.ShaderBytecode.GetDataAsString ( )

Gets the data as a string.

Returns
System.String.

Definition at line 65 of file ShaderBytecode.cs.

static implicit SiliconStudio.Paradox.Shaders.ShaderBytecode.operator byte[] ( ShaderBytecode  shaderBytecode)
static

Performs an implicit conversion from ShaderBytecode to System.Byte[][].

Parameters
shaderBytecodeThe shader bytecode.
Returns
The result of the conversion.

Definition at line 56 of file ShaderBytecode.cs.

Member Data Documentation

ShaderStage SiliconStudio.Paradox.Shaders.ShaderBytecode.Stage

The stage of this Bytecode.

Definition at line 19 of file ShaderBytecode.cs.

Property Documentation

byte [] SiliconStudio.Paradox.Shaders.ShaderBytecode.Data
getset

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

The shader data.

Definition at line 32 of file ShaderBytecode.cs.

ObjectId SiliconStudio.Paradox.Shaders.ShaderBytecode.Id
getset

Hash of the Data.

Definition at line 24 of file ShaderBytecode.cs.


The documentation for this class was generated from the following file: