Skip to content

Commit

Permalink
Add access specifiers to render pass structs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelarius committed Mar 23, 2024
1 parent 98c0df8 commit b2bd05f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pt/hybrid_renderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class HybridRenderer

struct GbufferPass
{
private:
std::vector<GpuBuffer> mPositionBuffers;
std::vector<GpuBuffer> mTexCoordBuffers;
std::vector<IndexBuffer> mIndexBuffers;
Expand All @@ -72,6 +73,7 @@ class HybridRenderer
GpuBindGroup mSamplerBindGroup;
WGPURenderPipeline mPipeline;

public:
GbufferPass(const GpuContext&, const HybridRendererDescriptor&);
~GbufferPass();

Expand All @@ -91,11 +93,13 @@ class HybridRenderer

struct DebugPass
{
private:
GpuBuffer mVertexBuffer = GpuBuffer{};
GpuBuffer mUniformBuffer = GpuBuffer{}; // TODO: replace with WGPUConstantEntry
GpuBindGroup mUniformBindGroup = GpuBindGroup{};
WGPURenderPipeline mPipeline = nullptr;

public:
DebugPass() = default;
DebugPass(const GpuContext& gpuContext, const GpuBindGroupLayout& gbufferBindGroupLayout);
~DebugPass();
Expand Down

0 comments on commit b2bd05f

Please sign in to comment.