Fixes for overriden draw calls material in debug views

This commit is contained in:
Wojtek Figat
2022-11-10 00:22:23 +01:00
parent e53623e854
commit ea5e38fdd1
6 changed files with 58 additions and 43 deletions

View File

@@ -11,6 +11,9 @@
class GPUPipelineState;
// The limit for maximum material complexity (estimated based on shader textures, instructions and GPU stages usage).
#define MATERIAL_COMPLEXITY_LIMIT 1700
/// <summary>
/// Rendering material shaders complexity to visualize performance of pixels rendering in editor.
/// </summary>
@@ -39,7 +42,7 @@ private:
public:
MaterialComplexityMaterialShader();
void DebugOverrideDrawCallsMaterial(RenderContext& renderContext, GPUContext* context, GPUTextureView* lightBuffer);
void DebugOverrideDrawCallsMaterial(RenderContext& renderContext);
void Draw(RenderContext& renderContext, GPUContext* context, GPUTextureView* lightBuffer);
private: