Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Graphics.UnlitShader
类 Engine.Graphics.UnlitShader 继承关系图:
Engine.Graphics.UnlitShader 的协作图:

Public 成员函数

 UnlitShader (string vsc, string psc, bool useVertexColor, bool useTexture, bool useAdditiveColor, bool useAlphaThreshold)
 UnlitShader (bool useVertexColor, bool useTexture, bool useAdditiveColor, bool useAlphaThreshold)
override void PrepareForDrawingOverride ()
Public 成员函数 继承自 Engine.Graphics.Shader
virtual ShaderParameter GetParameter (string name, bool allowNull=false)
override int GetGpuMemoryUsage ()
virtual void InitializeShader (string vertexShaderCode, string pixelShaderCode, ShaderMacro[] shaderMacros)
virtual void Construct (string vertexShaderCode, string pixelShaderCode, params ShaderMacro[] shaderMacros)
 Shader (string vertexShaderCode, string pixelShaderCode, params ShaderMacro[] shaderMacros)
override void Dispose ()
virtual void PrepareForDrawing ()
virtual VertexAttributeData[] GetVertexAttribData (VertexDeclaration vertexDeclaration)
virtual string PrependShaderMacros (string shaderCode, ShaderMacro[] shaderMacros, bool isVertexShader)
override void HandleDeviceLost ()
override void HandleDeviceReset ()
virtual void CompileShaders ()
virtual void DeleteShaders ()
Public 成员函数 继承自 Engine.Graphics.GraphicsResource
 GraphicsResource ()
int GetGpuMemoryUsage ()
void HandleDeviceLost ()
void HandleDeviceReset ()
void VerifyNotDisposed ()

静态 Public 成员函数

static string GetUnlitVshString ()
static string GetUnlitPshString ()
static ShaderMacro[] PrepareShaderMacros (bool useVertexColor, bool useTexture, bool useAdditiveColor, bool useAlphaThreshold)
静态 Public 成员函数 继承自 Engine.Graphics.Shader
static void ParseShaderMetadata (string shaderCode, Dictionary< string, string > semanticsByAttribute, Dictionary< string, string > samplersByTexture)

Public 属性

ShaderParameter m_worldViewProjectionMatrixParameter
ShaderParameter m_textureParameter
ShaderParameter m_samplerStateParameter
ShaderParameter m_colorParameter
ShaderParameter m_alphaThresholdParameter
ShaderParameter m_time
Public 属性 继承自 Engine.Graphics.TransformedShader
readonly ShaderTransforms Transforms
Public 属性 继承自 Engine.Graphics.Shader
Dictionary< string, ShaderParameterm_parametersByName
ShaderParameter[] m_parameters
string m_vertexShaderCode
string m_pixelShaderCode
ShaderMacro[] m_shaderMacros
int m_program
int m_vertexShader
int m_pixelShader
Dictionary< VertexDeclaration, VertexAttributeData[]> m_vertexAttributeDataByDeclaration = []
List< ShaderAttributeDatam_shaderAttributeData = []
ShaderParameter m_glymulParameter
Public 属性 继承自 Engine.Graphics.GraphicsResource
bool m_isDisposed

属性

Texture2D Texture [set]
SamplerState SamplerState [set]
Vector4 Color [set]
Vector4 AdditiveColor [set]
float AlphaThreshold [set]
float Time [set]
属性 继承自 Engine.Graphics.Shader
string DebugName [get, set]
object Tag [get, set]
ReadOnlyList< ShaderParameterParameters [get]

Private 属性

ShaderParameter m_additiveColorParameter

额外继承的成员函数

静态 Public 属性 继承自 Engine.Graphics.GraphicsResource
static HashSet< GraphicsResourcem_resources = []

详细描述

在文件 UnlitShader.cs6 行定义.

构造及析构函数说明

◆ UnlitShader() [1/2]

Engine.Graphics.UnlitShader.UnlitShader ( string vsc,
string psc,
bool useVertexColor,
bool useTexture,
bool useAdditiveColor,
bool useAlphaThreshold )

在文件 UnlitShader.cs45 行定义.

函数调用图:

◆ UnlitShader() [2/2]

Engine.Graphics.UnlitShader.UnlitShader ( bool useVertexColor,
bool useTexture,
bool useAdditiveColor,
bool useAlphaThreshold )

在文件 UnlitShader.cs61 行定义.

函数调用图:

成员函数说明

◆ GetUnlitPshString()

string Engine.Graphics.UnlitShader.GetUnlitPshString ( )
static

在文件 UnlitShader.cs86 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetUnlitVshString()

string Engine.Graphics.UnlitShader.GetUnlitVshString ( )
static

在文件 UnlitShader.cs76 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ PrepareForDrawingOverride()

override void Engine.Graphics.UnlitShader.PrepareForDrawingOverride ( )
virtual

重载 Engine.Graphics.Shader .

在文件 UnlitShader.cs96 行定义.

◆ PrepareShaderMacros()

ShaderMacro[] Engine.Graphics.UnlitShader.PrepareShaderMacros ( bool useVertexColor,
bool useTexture,
bool useAdditiveColor,
bool useAlphaThreshold )
static

在文件 UnlitShader.cs101 行定义.

这是这个函数的调用关系图:

类成员变量说明

◆ m_additiveColorParameter

ShaderParameter Engine.Graphics.UnlitShader.m_additiveColorParameter
private

在文件 UnlitShader.cs15 行定义.

◆ m_alphaThresholdParameter

ShaderParameter Engine.Graphics.UnlitShader.m_alphaThresholdParameter

在文件 UnlitShader.cs17 行定义.

◆ m_colorParameter

ShaderParameter Engine.Graphics.UnlitShader.m_colorParameter

在文件 UnlitShader.cs13 行定义.

◆ m_samplerStateParameter

ShaderParameter Engine.Graphics.UnlitShader.m_samplerStateParameter

在文件 UnlitShader.cs11 行定义.

◆ m_textureParameter

ShaderParameter Engine.Graphics.UnlitShader.m_textureParameter

在文件 UnlitShader.cs9 行定义.

◆ m_time

ShaderParameter Engine.Graphics.UnlitShader.m_time

在文件 UnlitShader.cs19 行定义.

◆ m_worldViewProjectionMatrixParameter

ShaderParameter Engine.Graphics.UnlitShader.m_worldViewProjectionMatrixParameter

在文件 UnlitShader.cs7 行定义.

属性说明

◆ AdditiveColor

Vector4 Engine.Graphics.UnlitShader.AdditiveColor
setadd

在文件 UnlitShader.cs33 行定义.

◆ AlphaThreshold

float Engine.Graphics.UnlitShader.AlphaThreshold
set

在文件 UnlitShader.cs37 行定义.

◆ Color

Vector4 Engine.Graphics.UnlitShader.Color
set

在文件 UnlitShader.cs29 行定义.

◆ SamplerState

SamplerState Engine.Graphics.UnlitShader.SamplerState
set

在文件 UnlitShader.cs25 行定义.

◆ Texture

Texture2D Engine.Graphics.UnlitShader.Texture
set

在文件 UnlitShader.cs21 行定义.

◆ Time

float Engine.Graphics.UnlitShader.Time
set

在文件 UnlitShader.cs41 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine.Graphics/UnlitShader.cs