Graphics/Shaders/CCameraBlurFilter: Move Vert definition into cpp file

This is private and not used anywhere in the exposed interface, so this
can be moved into the cpp file to make it an implementation detail and
allow moving a zeus header into the cpp file.
This commit is contained in:
Lioncash 2019-09-28 22:07:03 -04:00
parent 902f4fb5c5
commit 417506572c
2 changed files with 9 additions and 8 deletions

View File

@ -6,10 +6,17 @@
#include "Runtime/Graphics/CGraphics.hpp" #include "Runtime/Graphics/CGraphics.hpp"
#include <hecl/Pipeline.hpp> #include <hecl/Pipeline.hpp>
#include <zeus/CVector2f.hpp>
namespace urde { namespace urde {
namespace {
struct Vert {
zeus::CVector2f m_pos;
zeus::CVector2f m_uv;
};
static boo::ObjToken<boo::IShaderPipeline> s_Pipeline; boo::ObjToken<boo::IShaderPipeline> s_Pipeline;
} // Anonymous namespace
void CCameraBlurFilter::Initialize() { s_Pipeline = hecl::conv->convert(Shader_CCameraBlurFilter{}); } void CCameraBlurFilter::Initialize() { s_Pipeline = hecl::conv->convert(Shader_CCameraBlurFilter{}); }

View File

@ -1,22 +1,16 @@
#pragma once #pragma once
#include <boo/graphicsdev/IGraphicsDataFactory.hpp> #include <boo/graphicsdev/IGraphicsDataFactory.hpp>
#include <zeus/CVector3f.hpp>
#include <zeus/CVector4f.hpp> #include <zeus/CVector4f.hpp>
namespace urde { namespace urde {
class CCameraBlurFilter { class CCameraBlurFilter {
struct Vert {
zeus::CVector2f m_pos;
zeus::CVector2f m_uv;
};
struct Uniform { struct Uniform {
zeus::CVector4f m_uv[6]; zeus::CVector4f m_uv[6];
float m_opacity = 1.f; float m_opacity = 1.f;
}; };
boo::ObjToken<boo::IGraphicsBufferD> m_vbo; boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
boo::ObjToken<boo::IGraphicsBufferD> m_uniBuf; boo::ObjToken<boo::IGraphicsBufferD> m_uniBuf;
boo::ObjToken<boo::IShaderDataBinding> m_dataBind; boo::ObjToken<boo::IShaderDataBinding> m_dataBind;