|
ShadersManager Methods |
The ShadersManager type exposes the following members.
Methods | Name | Description |
---|
| Create | |
| CreateShaderModule |
Creates a ShaderModule from the specified shaderBytecode.
|
| GetOrCreatePipelineShaderStage |
GetOrCreatePipelineShaderStage method first tries to gets the shader with shaderResourceName from the cache.
If it does not exist in the cache, then a new a shader is created from the specified shaderResourceName.
The method returns PipelineShaderStageCreateInfo. ShaderModule can be get from Module field on the returned PipelineShaderStageCreateInfo struct.
|
| GetOrCreateShaderModule |
GetOrCreateShaderModule method first tries to gets the shader with shaderResourceName from the cache.
If it does not exist in the cache, then a new a shader is created from the specified shaderResourceName.
|
| GetRegisteredShaderResourceNames |
Returns an array of strings of all registered resource names.
This method is the same as static GetRegisteredShaderResourceNamesStatic method.
|
| GetRegisteredShaderResourceNamesStatic |
Returns an array of strings of all registered resource names.
|
| GetShaderBytes |
Gets bytes array of the shader byte code. Before using this method, the shader resources need to be registered with RegisterShaderResource(ShaderBytecodeProvider) method.
|
| RegisterShaderResource(ShaderBytecodeProvider) |
Registers newShaderResource as source for shaders code. Returns true if resource was registered, false if the same resource was already registered.
This method is the same as static RegisterShaderResourceStatic(ShaderBytecodeProvider) method.
|
| RegisterShaderResource(String, Byte) |
Registers the specified resourceName and its bytes array as a source for the shaders bytecode.
Returns true if resource was registered, false if the same resource was already registered.
This method is the same as static RegisterShaderResourceStatic(String, Byte) method.
|
| RegisterShaderResourceStatic(ShaderBytecodeProvider) |
Registers newShaderResource as source for shaders code.
Returns true if resource was registered, false if the same resource was already registered.
This method is the same as non-static RegisterShaderResource(ShaderBytecodeProvider) method.
|
| RegisterShaderResourceStatic(String, Byte) |
Registers the specified resourceName and its bytes array as a source for the shaders bytecode.
Returns true if resource was registered, false if the same resource was already registered.
This method is the same as non-static RegisterShaderResource(String, Byte) method.
|
| UnregisterShaderResource(ShaderBytecodeProvider) |
Unregisters shaderResource as source for shaders code. Returns true if resource was unregistered, false if the this resource was not registered and was therefore not unregistered.
This method is the same as static UnregisterShaderResourceStatic(ShaderBytecodeProvider) method.
|
| UnregisterShaderResource(String) |
Unregisters the specified resourceName from the list of registered shader resources (resource that was previously registered by RegisterShaderResource(String, Byte) or RegisterShaderResourceStatic(String, Byte).
Returns true if resource was unregistered, false if the this resource was not registered and was therefore not unregistered.
This method is the same as static UnregisterShaderResourceStatic(String) method.
|
| UnregisterShaderResourceStatic(ShaderBytecodeProvider) |
Unregisters shaderResource as source for shaders code. Returns true if resource was unregistered, false if the this resource was not registered and was therefore not unregistered.
This method is the same as non-static UnregisterShaderResource(ShaderBytecodeProvider) method.
|
| UnregisterShaderResourceStatic(String) |
Unregisters the specified resourceName from the list of registered shader resources (resource that was previously registered by RegisterShaderResource(String, Byte) or RegisterShaderResourceStatic(String, Byte).
Returns true if resource was unregistered, false if the this resource was not registered and was therefore not unregistered.
This method is the same as non-static UnregisterShaderResource(String) method.
|
TopSee Also