mirror of https://github.com/AxioDL/metaforce.git
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:
parent
902f4fb5c5
commit
417506572c
|
@ -6,10 +6,17 @@
|
|||
#include "Runtime/Graphics/CGraphics.hpp"
|
||||
|
||||
#include <hecl/Pipeline.hpp>
|
||||
#include <zeus/CVector2f.hpp>
|
||||
|
||||
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{}); }
|
||||
|
||||
|
|
|
@ -1,22 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
||||
|
||||
#include <zeus/CVector3f.hpp>
|
||||
#include <zeus/CVector4f.hpp>
|
||||
|
||||
namespace urde {
|
||||
|
||||
class CCameraBlurFilter {
|
||||
struct Vert {
|
||||
zeus::CVector2f m_pos;
|
||||
zeus::CVector2f m_uv;
|
||||
};
|
||||
|
||||
struct Uniform {
|
||||
zeus::CVector4f m_uv[6];
|
||||
float m_opacity = 1.f;
|
||||
};
|
||||
|
||||
boo::ObjToken<boo::IGraphicsBufferD> m_vbo;
|
||||
boo::ObjToken<boo::IGraphicsBufferD> m_uniBuf;
|
||||
boo::ObjToken<boo::IShaderDataBinding> m_dataBind;
|
||||
|
|
Loading…
Reference in New Issue