Back to class index
| ShaderConstantBuffer::BindToMaterialSyntaxvoid ShaderConstantBuffer::BindToMaterial(ShaderType type, const char *constantBufferName, const Material *material);Parametersconst char *constantBufferName(D3D11 only) The name of the constant buffer to bind to. This function will resolve the buffer index of that constant buffer, and bind this ShaderConstantBuffer object to that index. If this ShaderConstantBuffer only specifies textures, pass in a null pointer in this argument to avoid binding to any constant buffer.
Leave a Comment |