cohtml.BackendUtilities

Public Classes

Name
structShaderCombination

Public Functions

Name
UnityEngine.Experimental.Rendering.GraphicsFormatRenoirToUnityGraphicsFormat(PixelFormat format)
TextureFormatRenoirToUnityTextureFormat(PixelFormat format)
PixelFormatUnityToRenoirPixelFormat(UnityEngine.Experimental.Rendering.GraphicsFormat format)
BlendOpRenoir2UnityBlendingOp(BlendingOp op)
BlendModeRenoir2UnityBlendMode(BlendingCoeff coeff)
ushortRenoir2UnityShader(ShaderType vs, ShaderType ps)
UnityEngine.Rendering.ColorWriteMaskRenoir2UnityColorWriteMask(renoir.ColorWriteMask cwm)
CompareFunctionRenoir2UnityCompareFunction(ComparisonFunction func)
intRenoir2UnityCompareDepthFunction(ComparisonFunction func)
UnityEngine.Rendering.StencilOpRenoir2UnityStencilOp(renoir.StencilOp op)
FilterModeRenoir2UnityFilterMode(SamplerFilter filtering)
TextureWrapModeRenoir2UnityWrapMode(SamplerAddressing addressing)

Public Attributes

Name
const uintVERTEX_SHADERS_COUNT
const uintPIXEL_SHADERS_COUNT
readonly List< ShaderCombination >VALID_SHADER_COMBINATIONS
readonly uintALL_SHADER_PASSES_COUNT

Public Functions Documentation

function RenoirToUnityGraphicsFormat

static UnityEngine.Experimental.Rendering.GraphicsFormat RenoirToUnityGraphicsFormat(
    PixelFormat format
)

function RenoirToUnityTextureFormat

static TextureFormat RenoirToUnityTextureFormat(
    PixelFormat format
)

function UnityToRenoirPixelFormat

static PixelFormat UnityToRenoirPixelFormat(
    UnityEngine.Experimental.Rendering.GraphicsFormat format
)

function Renoir2UnityBlendingOp

static BlendOp Renoir2UnityBlendingOp(
    BlendingOp op
)

function Renoir2UnityBlendMode

static BlendMode Renoir2UnityBlendMode(
    BlendingCoeff coeff
)

function Renoir2UnityShader

static ushort Renoir2UnityShader(
    ShaderType vs,
    ShaderType ps
)

function Renoir2UnityColorWriteMask

static UnityEngine.Rendering.ColorWriteMask Renoir2UnityColorWriteMask(
    renoir.ColorWriteMask cwm
)

function Renoir2UnityCompareFunction

static CompareFunction Renoir2UnityCompareFunction(
    ComparisonFunction func
)

function Renoir2UnityCompareDepthFunction

static int Renoir2UnityCompareDepthFunction(
    ComparisonFunction func
)

function Renoir2UnityStencilOp

static UnityEngine.Rendering.StencilOp Renoir2UnityStencilOp(
    renoir.StencilOp op
)

function Renoir2UnityFilterMode

static FilterMode Renoir2UnityFilterMode(
    SamplerFilter filtering
)

function Renoir2UnityWrapMode

static TextureWrapMode Renoir2UnityWrapMode(
    SamplerAddressing addressing
)

Public Attributes Documentation

variable VERTEX_SHADERS_COUNT

const uint VERTEX_SHADERS_COUNT = 5;

variable PIXEL_SHADERS_COUNT

const uint PIXEL_SHADERS_COUNT = 11;

variable VALID_SHADER_COMBINATIONS

static readonly List< ShaderCombination > VALID_SHADER_COMBINATIONS = new List<ShaderCombination>
		{
			new ShaderCombination(ShaderType.ST_ClearQuad, ShaderType.ST_ClearQuad),
			new ShaderCombination(ShaderType.ST_FillPathAtlas, ShaderType.ST_FillPathAtlas),
			new ShaderCombination(ShaderType.ST_GenerateSDF, ShaderType.ST_GenerateSDF),
			new ShaderCombination(ShaderType.ST_Path, ShaderType.ST_ClipMask),
			new ShaderCombination(ShaderType.ST_Path, ShaderType.ST_Path),
			new ShaderCombination(ShaderType.ST_Path, ShaderType.ST_StencilPath),
			new ShaderCombination(ShaderType.ST_RenoirShader, ShaderType.ST_RenoirShader),
			new ShaderCombination(ShaderType.ST_Standard, ShaderType.ST_ClipMask),
			new ShaderCombination(ShaderType.ST_Standard, ShaderType.ST_ColorMixing),
			new ShaderCombination(ShaderType.ST_Standard, ShaderType.ST_Standard),
			new ShaderCombination(ShaderType.ST_Standard, ShaderType.ST_StandardRare),
			new ShaderCombination(ShaderType.ST_Standard, ShaderType.ST_Stencil),
			new ShaderCombination(ShaderType.ST_Standard, ShaderType.ST_StencilRare),
		};

variable ALL_SHADER_PASSES_COUNT

static readonly uint ALL_SHADER_PASSES_COUNT = (uint)VALID_SHADER_COMBINATIONS.Count;