From 378cad24bd79c3d3e8aa027522bec9bb5e1bb5b5 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 30 Mar 2022 12:48:38 +0100 Subject: [PATCH] Fix some missing comments in custom shader snippet generation --- qrenderdoc/Windows/ShaderViewer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qrenderdoc/Windows/ShaderViewer.cpp b/qrenderdoc/Windows/ShaderViewer.cpp index 21efc4239..3e182a826 100644 --- a/qrenderdoc/Windows/ShaderViewer.cpp +++ b/qrenderdoc/Windows/ShaderViewer.cpp @@ -5138,6 +5138,10 @@ void ShaderViewer::snippet_constants() if(encoding == ShaderEncoding::GLSL) { text = lit(R"( +///////////////////////////////////// +// Constants // +///////////////////////////////////// + // possible values (these are only return values from this function, NOT texture binding points): // RD_TextureType_1D // RD_TextureType_2D @@ -5180,6 +5184,8 @@ uvec4 RD_YUVAChannels(); // a pair with minimum and maximum selected range values vec2 RD_SelectedRange(); +///////////////////////////////////// + )"); } else if(encoding == ShaderEncoding::HLSL) @@ -5197,6 +5203,7 @@ vec2 RD_SelectedRange(); // RD_TextureType_DepthStencil // RD_TextureType_DepthMS // RD_TextureType_DepthStencilMS +// RD_TextureType_2DMS uint RD_TextureType(); // selected sample, or -numSamples for resolve @@ -5374,6 +5381,8 @@ layout (binding = RD_UINT_RECT_BINDING) uniform usampler2DRect texSInt2DRect; layout (binding = RD_UINT_BUFFER_BINDING) uniform usamplerBuffer texSIntBuffer; layout (binding = RD_UINT_2DMS_BINDING) uniform usampler2DMS texSInt2DMS; #endif + +///////////////////////////////////// )")); } }