C# Класс TagTool.Shaders.ShaderConverter

Utility class for converting shader bytecode between rendering pipelines.
Показать файл Открыть проект

Открытые методы

Метод Описание
ConvertNewPixelShaderToOld ( byte shaderData, int mode ) : byte[]

Converts a new (1.235640+) pixel shader to one compatible with the 1.106708 pipeline.

ConvertNewVertexShaderToOld ( byte shaderData, int mode, VertexType type ) : byte[]

Converts a new (1.235640+) vertex shader to one compatible with the 1.106708 pipeline. Note that this requires that models have binormals set so that X = Position.W and Y = Tangent.W.

Описание методов

ConvertNewPixelShaderToOld() публичный статический Метод

Converts a new (1.235640+) pixel shader to one compatible with the 1.106708 pipeline.
public static ConvertNewPixelShaderToOld ( byte shaderData, int mode ) : byte[]
shaderData byte The shader bytecode to convert.
mode int The drawing mode.
Результат byte[]

ConvertNewVertexShaderToOld() публичный статический Метод

Converts a new (1.235640+) vertex shader to one compatible with the 1.106708 pipeline. Note that this requires that models have binormals set so that X = Position.W and Y = Tangent.W.
public static ConvertNewVertexShaderToOld ( byte shaderData, int mode, VertexType type ) : byte[]
shaderData byte The shader bytecode to convert.
mode int The drawing mode.
type VertexType The vertex type.
Результат byte[]