diff options
Diffstat (limited to 'tools/gfx/render-graphics-common.h')
| -rw-r--r-- | tools/gfx/render-graphics-common.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/gfx/render-graphics-common.h b/tools/gfx/render-graphics-common.h new file mode 100644 index 000000000..5bb4cb59e --- /dev/null +++ b/tools/gfx/render-graphics-common.h @@ -0,0 +1,22 @@ +#pragma once + +#include "tools/gfx/render.h" + +namespace gfx +{ + +class GraphicsAPIRenderer : public Renderer +{ +public: + virtual Result createShaderObjectLayout( + slang::TypeLayoutReflection* typeLayout, ShaderObjectLayout** outLayout) SLANG_OVERRIDE; + virtual Result createRootShaderObjectLayout( + slang::ProgramLayout* programLayout, ShaderObjectLayout** outLayout) SLANG_OVERRIDE; + virtual Result createShaderObject(ShaderObjectLayout* layout, ShaderObject** outObject) SLANG_OVERRIDE; + virtual Result createRootShaderObject(ShaderObjectLayout* rootLayout, ShaderObject** outObject) SLANG_OVERRIDE; + virtual Result bindRootShaderObject(PipelineType pipelineType, ShaderObject* object) SLANG_OVERRIDE; + void preparePipelineDesc(GraphicsPipelineStateDesc& desc); + void preparePipelineDesc(ComputePipelineStateDesc& desc); +}; + +} |
