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

NameDescription
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

NameDescription
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.