#include <samplerinstance.h>
| Public Member Functions | |
| SamplerCubeInstance (RenderService &renderService, const SamplerDeclaration &declaration, const SamplerCube *samplerCube, const SamplerChangedCallback &samplerChangedCallback) | |
| void | setTexture (TextureCube &textureCube) | 
| bool | hasTexture () const | 
| const TextureCube & | getTexture () const | 
|  Public Member Functions inherited from SamplerInstance | |
| SamplerInstance (RenderService &renderService, const SamplerDeclaration &declaration, const Sampler *sampler, const SamplerChangedCallback &samplerChangedCallback) | |
| virtual | ~SamplerInstance () | 
| bool | init (utility::ErrorState &errorState) | 
| const SamplerDeclaration & | getDeclaration () const | 
| VkSampler | getVulkanSampler () const | 
| Additional Inherited Members | |
|  Protected Member Functions inherited from SamplerInstance | |
| void | raiseChanged (int index=0) | 
|  Protected Attributes inherited from SamplerInstance | |
| RenderService * | mRenderService = nullptr | 
| VkSampler | mVulkanSampler = VK_NULL_HANDLE | 
| const Sampler * | mSampler = nullptr | 
| const SamplerDeclaration * | mDeclaration = nullptr | 
| SamplerChangedCallback | mSamplerChangedCallback | 
Cube sampler instance. Binds a single Cube texture to a shader. The texture can be changed at runtime.
| SamplerCubeInstance | ( | RenderService & | renderService, | 
| const SamplerDeclaration & | declaration, | ||
| const SamplerCube * | samplerCube, | ||
| const SamplerChangedCallback & | samplerChangedCallback | ||
| ) | 
Constructs the instance based on the shader declaration and resource.
| renderService | render engine | 
| declaration | sampler shader declaration | 
| samplerCube | the sampler resource used to create this instance. | 
| samplerChangedCallback | called when the 'texture' changes. | 
| const TextureCube& getTexture | ( | ) | const | 
| bool hasTexture | ( | ) | const | 
| void setTexture | ( | TextureCube & | textureCube | ) | 
Binds a texture to the cube sampler.
| textureCube | the new texture to bind |