Commit 9b8dd6e7 authored by Nicholas Milef's avatar Nicholas Milef
Browse files

CLEANUP: fixed const correctness issues and added description for sss

parent 486db463
Pipeline #132930 passed with stage
......@@ -571,8 +571,8 @@ VulkanPostProcess::initializeFramebuffer(VulkanRenderer * renderer)
void
VulkanPostProcess::createFramebuffer(VulkanRenderer * renderer,
unsigned int width,
unsigned int height)
const unsigned int width,
const unsigned int height)
{
m_framebuffer = std::make_shared<VulkanFramebuffer>(
renderer->m_memoryManager,
......
......@@ -64,8 +64,8 @@ protected:
void createPipeline(VulkanRenderer * renderer, std::string fragmentSource);
void createRenderPass(VulkanRenderer * renderer);
void createFramebuffer(VulkanRenderer * renderer,
unsigned int width,
unsigned int height);
const unsigned int width,
const unsigned int height);
void createFullscreenQuad(VulkanRenderer * renderer);
......
......@@ -47,8 +47,8 @@ public:
protected:
friend class VulkanRenderer;
bool m_bloom = true;
bool m_sss = true;
bool m_bloom = true; ///< bloom pass
bool m_sss = true; ///< subsurface scattering pass
std::vector<std::shared_ptr<VulkanPostProcess>> m_postProcesses;
void incrementBufferNumbers();
......
......@@ -107,10 +107,10 @@ VulkanRenderer::createInstance()
}
void
VulkanRenderer::initialize(unsigned int width,
unsigned int height,
unsigned int windowWidth,
unsigned int windowHeight)
VulkanRenderer::initialize(const unsigned int width,
const unsigned int height,
const unsigned int windowWidth,
const unsigned int windowHeight)
{
m_windowWidth = windowWidth;
m_windowHeight = windowHeight;
......
......@@ -188,10 +188,10 @@ protected:
void createInstance();
void initialize(unsigned int width,
unsigned int height,
unsigned int windowWidth,
unsigned int windowHeight);
void initialize(const unsigned int width,
const unsigned int height,
const unsigned int windowWidth,
const unsigned int windowHeight);
void loadAllVisualModels();
///
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment