|
| enum | EShaderType : uint { Vertex = 0x01,
Fragment = 0x02
} |
| |
| using | ShaderTypeFlags = uint |
| |
| static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
| |
| std::string | mID |
| | Property: 'mID' unique name of the object. Used as an identifier by the system. More...
|
| |
| bool | load (const std::string &displayName, const std::vector< std::string > &searchPaths, const char *vertShader, int vertSize, const char *fragShader, int fragSize, utility::ErrorState &errorState) |
| |
| bool | loadDefault (const std::string &displayName, utility::ErrorState &errorState) |
| |
| bool | initLayout (VkDevice device, nap::utility::ErrorState &errorState) |
| |
| bool | verifyShaderVariableDeclarations (utility::ErrorState &errorState) |
| |
| RenderService * | mRenderService = nullptr |
| | Handle to render engine. More...
|
| |
| std::string | mDisplayName |
| | Filename of shader used as display name. More...
|
| |
| BufferObjectDeclarationList | mUBODeclarations |
| | All uniform buffer object declarations. More...
|
| |
| BufferObjectDeclarationList | mSSBODeclarations |
| | All storage buffer object declarations. More...
|
| |
| SamplerDeclarations | mSamplerDeclarations |
| | All sampler declarations. More...
|
| |
| ShaderConstantDeclarations | mConstantDeclarations |
| | All shader constant declarations. More...
|
| |
| VkDescriptorSetLayout | mDescriptorSetLayout = VK_NULL_HANDLE |
| | Descriptor set layout. More...
|
| |
Shader that applies a contrast, brightness and saturation filter to a texture.
The coloradjustment shader exposes the following shader variables:
uniform UBO
{
float contrast; // Contrast adjustment [-1.0, 1.0]
float brightness; // Brightness adjustment [-x, x]
float saturation; // Saturation adjustment [0.0, x]
};
uniform sampler2D colorTexture;