Class MaterialParameterUtils

Namespace
Elegy.RenderSystem.Resources
Assembly
Elegy.RenderSystem.dll
public static class MaterialParameterUtils
Inheritance
MaterialParameterUtils
Inherited Members

Methods

CreateBufferForMaterialParameter(GraphicsDevice, ShaderDataType, string?)

public static DeviceBuffer CreateBufferForMaterialParameter(GraphicsDevice device, ShaderDataType type, string? value)

Parameters

device GraphicsDevice
type ShaderDataType
value string

Returns

DeviceBuffer

CreateMaterialParameter(GraphicsDevice, string, ShaderDataType, string?)

public static MaterialParameter CreateMaterialParameter(GraphicsDevice device, string name, ShaderDataType type, string? value)

Parameters

device GraphicsDevice
name string
type ShaderDataType
value string

Returns

MaterialParameter

CreateTextureForMaterialParameter(GraphicsDevice, string?)

public static Texture CreateTextureForMaterialParameter(GraphicsDevice device, string? value)

Parameters

device GraphicsDevice
value string

Returns

Texture

GenerateResourceSet(GraphicsDevice, ResourceLayout, List<MaterialParameter>)

public static ResourceSet GenerateResourceSet(GraphicsDevice device, ResourceLayout layout, List<MaterialParameter> parameters)

Parameters

device GraphicsDevice
layout ResourceLayout
parameters List<MaterialParameter>

Returns

ResourceSet

GetDefaultMaterialParameterBuffer(GraphicsDevice, ShaderDataType)

public static DeviceBuffer GetDefaultMaterialParameterBuffer(GraphicsDevice device, ShaderDataType type)

Parameters

device GraphicsDevice
type ShaderDataType

Returns

DeviceBuffer

GetMissingTexture()

public static Texture GetMissingTexture()

Returns

Texture

GetSamplerByName(string?)

public static Sampler GetSamplerByName(string? value)

Parameters

value string

Returns

Sampler