bind method
Binds the uniform block and the sampler parameters on shader into pass.
Implementation
void bind(
gpu.RenderPass pass,
gpu.Shader shader,
TransientWriter transientsBuffer,
) {
bindUniformBlock(pass, shader, transientsBuffer);
for (final entry in _samplers.entries) {
final slot = entry.value;
pass.bindTexture(
shader.getUniformSlot(entry.key),
slot.texture ?? _placeholder(slot.defaultPlaceholder),
sampler: slot.sampler ?? gpu.SamplerOptions(),
);
}
}