Nameless Engine
|
#include <LightingShaderResourceManager.h>
Public Member Functions | |
std::optional< Error > | initialize (Renderer *pRenderer) |
std::optional< Error > | updateDataAndSubmitShader (Renderer *pRenderer, const std::pair< unsigned int, unsigned int > &renderTargetSize, const glm::mat4 &inverseProjectionMatrix) |
Public Attributes | |
std::unique_ptr< ComputeShaderInterface > | pComputeInterface |
ShaderResources | resources |
unsigned int | iLastUpdateTileCountX = 0 |
unsigned int | iLastUpdateTileCountY = 0 |
bool | bIsInitialized = false |
Static Public Attributes | |
static const auto | sComputeInfoShaderResourceName = "computeInfo" |
static const auto | sScreenToViewDataShaderResourceName = "screenToViewData" |
static const auto | sCalculatedFrustumsShaderResourceName = "calculatedFrustums" |
Groups compute interface and its resources.
bool ne::LightingShaderResourceManager::ComputeShaderData::FrustumGridComputeShader::ComputeShader::bIsInitialized = false |
true
if initialize was called, false
otherwise.
unsigned int ne::LightingShaderResourceManager::ComputeShaderData::FrustumGridComputeShader::ComputeShader::iLastUpdateTileCountX = 0 |
Total number of tiles in the X direction that was used when updateDataAndSubmitShader was called the last time.
unsigned int ne::LightingShaderResourceManager::ComputeShaderData::FrustumGridComputeShader::ComputeShader::iLastUpdateTileCountY = 0 |
Total number of tiles in the X direction that was used when updateDataAndSubmitShader was called the last time.
std::unique_ptr<ComputeShaderInterface> ne::LightingShaderResourceManager::ComputeShaderData::FrustumGridComputeShader::ComputeShader::pComputeInterface |
Shader Compute.
ShaderResources ne::LightingShaderResourceManager::ComputeShaderData::FrustumGridComputeShader::ComputeShader::resources |
Shader resources.
|
inlinestatic |
Name of the shader resource (name from shader code) that stores calculated frustums.
|
inlinestatic |
Name of the shader resource (name from shader code) that stores additional data for compute shader.
|
inlinestatic |
Name of the shader resource (name from shader code) that stores data to convert from screen space to view space.