Rendered attribute buffers proxy. More...
Public Member Functions | |
ShaderAttributesProxy (ShaderAttributes target) | |
Construct a ShaderAttributesProxy targeting a ShaderAttributes instance. | |
override void | Render (RenderContext ctx, ShaderProgram sProgram) |
Render vertices attributes. | |
Properties | |
override IEnumerable< string > | Bindings [get] |
Current attributes bindings. |
Rendered attribute buffers proxy.
This class is dedicated to supply data to ShaderProgram instances, and execute ShaderProgram instances based on the input set. The difference between this class and the ShaderAttributes class is that this class reference an already existing ShaderAttributes instance.
This class allow to reference an already existing ShaderAttributes class, without duplicating the buffers.
Derm.Render.ShaderAttributesProxy.ShaderAttributesProxy | ( | ShaderAttributes | target | ) |
Construct a ShaderAttributesProxy targeting a ShaderAttributes instance.
target |
override void Derm.Render.ShaderAttributesProxy.Render | ( | RenderContext | ctx, | |
ShaderProgram | sProgram | |||
) | [virtual] |
Render vertices attributes.
ctx | A RenderContext used for rendering. | |
sProgram | A ShaderProgram used for rendering. |
Implements Derm.Render.BaseShaderAttributes.
override IEnumerable<string> Derm.Render.ShaderAttributesProxy.Bindings [get] |
Current attributes bindings.
Reimplemented from Derm.Render.BaseShaderAttributes.