Adding Pipeline statistics queries
This commit is contained in:
1 parent
86c179e2e7
commit
0fd331b3b5
30 files changed
+344
-95
No files matched your search
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include "Graphics/Buffer.h"
|
||||
#include "Graphics/Query.h"
|
||||
#include "Graphics/RenderTarget.h"
|
||||
#include "Graphics/Texture.h"
|
||||
#include "MinimalEngine.h"
|
||||
@@ -16,16 +17,19 @@ class RenderGraphResources {
|
||||
Gfx::PTexture requestTexture(const std::string& outputName);
|
||||
Gfx::PShaderBuffer requestBuffer(const std::string& outputName);
|
||||
Gfx::PUniformBuffer requestUniform(const std::string& outputName);
|
||||
Gfx::PPipelineStatisticsQuery requestQuery(const std::string& outputName);
|
||||
void registerRenderPassOutput(const std::string& outputName, Gfx::RenderTargetAttachment attachment);
|
||||
void registerTextureOutput(const std::string& outputName, Gfx::PTexture buffer);
|
||||
void registerBufferOutput(const std::string& outputName, Gfx::PShaderBuffer buffer);
|
||||
void registerUniformOutput(const std::string& outputName, Gfx::PUniformBuffer buffer);
|
||||
void registerQueryOutput(const std::string& outputName, Gfx::PPipelineStatisticsQuery query);
|
||||
|
||||
protected:
|
||||
Map<std::string, Gfx::RenderTargetAttachment> registeredAttachments;
|
||||
Map<std::string, Gfx::PTexture> registeredTextures;
|
||||
Map<std::string, Gfx::PShaderBuffer> registeredBuffers;
|
||||
Map<std::string, Gfx::PUniformBuffer> registeredUniforms;
|
||||
Map<std::string, Gfx::PPipelineStatisticsQuery> registeredQueries;
|
||||
};
|
||||
DEFINE_REF(RenderGraphResources)
|
||||
} // namespace Seele
|
||||
Reference in new issue
Block a user