Class MaterialParameter
- Namespace
- Elegy.RenderSystem.Resources
- Assembly
- Elegy.RenderSystem.dll
public class MaterialParameter
- Inheritance
-
MaterialParameter
- Inherited Members
-
Constructors
MaterialParameter(string, ShaderDataType, DeviceBuffer)
public MaterialParameter(string name, ShaderDataType type, DeviceBuffer buffer)
Parameters
name
string
type
ShaderDataType
buffer
DeviceBuffer
MaterialParameter(string, ShaderDataType, Texture)
public MaterialParameter(string name, ShaderDataType type, Texture texture)
Parameters
name
string
type
ShaderDataType
texture
Texture
MaterialParameter(string, Sampler)
public MaterialParameter(string name, Sampler sampler)
Parameters
name
string
sampler
Sampler
Properties
Buffer
public DeviceBuffer? Buffer { get; }
Property Value
- DeviceBuffer
Name
public string Name { get; }
Property Value
- string
Sampler
public Sampler? Sampler { get; set; }
Property Value
- Sampler
Texture
public Texture? Texture { get; set; }
Property Value
- Texture
Type
public ShaderDataType Type { get; }
Property Value
- ShaderDataType
Methods
SetBufferValue<T>(GraphicsDevice, T)
public void SetBufferValue<T>(GraphicsDevice device, T bufferValue) where T : unmanaged
Parameters
device
GraphicsDevice
bufferValue
T
Type Parameters
T
SetValue(GraphicsDevice, bool)
public void SetValue(GraphicsDevice device, bool value)
Parameters
device
GraphicsDevice
value
bool
SetValue(GraphicsDevice, int)
public void SetValue(GraphicsDevice device, int value)
Parameters
device
GraphicsDevice
value
int
SetValue(GraphicsDevice, Matrix4x4)
public void SetValue(GraphicsDevice device, Matrix4x4 value)
Parameters
device
GraphicsDevice
value
Matrix4x4
SetValue(GraphicsDevice, Vector2)
public void SetValue(GraphicsDevice device, Vector2 value)
Parameters
device
GraphicsDevice
value
Vector2
SetValue(GraphicsDevice, Vector3)
public void SetValue(GraphicsDevice device, Vector3 value)
Parameters
device
GraphicsDevice
value
Vector3
SetValue(GraphicsDevice, Vector4)
public void SetValue(GraphicsDevice device, Vector4 value)
Parameters
device
GraphicsDevice
value
Vector4
SetValue(GraphicsDevice, float)
public void SetValue(GraphicsDevice device, float value)
Parameters
device
GraphicsDevice
value
float