UniformBuffer.this - multiple declarations
Function UniformBuffer.this
Initialize a new uniform buffer.
this
(
uint bindingLocation = 0,
ShaderStage shaderStage = ShaderStage .allGraphics,
T value = T .init
);
Parameters
Name | Description |
---|---|
bindingLocation | Uniform binding location, e.g. layout(binding = 0) in GLSL. |
shaderStage | Which shader stages the UBO is going to be referenced. |
value | Uniform data to optionally pre-populate. |
Function UniformBuffer.this
Initialize a new named uniform buffer.
this
(
string name,
uint bindingLocation = 0,
ShaderStage shaderStage = ShaderStage .allGraphics,
T value = T .init
);
Parameters
Name | Description |
---|---|
name | |
bindingLocation | Uniform binding location, e.g. layout(binding = 0) in GLSL. |
shaderStage | Which shader stages the UBO is going to be referenced. |
value | Uniform data to optionally pre-populate. |