From f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 14:49:26 +0800 Subject: format * format * Minor test fixes * enable checking cpp format in ci --- tools/render-test/shader-renderer-util.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'tools/render-test/shader-renderer-util.h') diff --git a/tools/render-test/shader-renderer-util.h b/tools/render-test/shader-renderer-util.h index 8d0075f3f..bf0569988 100644 --- a/tools/render-test/shader-renderer-util.h +++ b/tools/render-test/shader-renderer-util.h @@ -1,26 +1,30 @@ // shader-renderer-util.h #pragma once -#include #include "shader-input-layout.h" -namespace renderer_test { +#include + +namespace renderer_test +{ using namespace Slang; ComPtr _createSampler(IDevice* device, const InputSamplerDesc& srcDesc); -/// Utility class containing functions that construct items on the renderer using the ShaderInputLayout representation +/// Utility class containing functions that construct items on the renderer using the +/// ShaderInputLayout representation struct ShaderRendererUtil { - /// Generate a texture using the InputTextureDesc and construct a Texture using the Renderer with the contents + /// Generate a texture using the InputTextureDesc and construct a Texture using the Renderer + /// with the contents static Slang::Result generateTexture( const InputTextureDesc& inputDesc, ResourceState defaultState, IDevice* device, ComPtr& textureOut); - /// Create texture resource using inputDesc, and texData to describe format, and contents + /// Create texture resource using inputDesc, and texData to describe format, and contents static Slang::Result createTexture( const InputTextureDesc& inputDesc, const TextureData& texData, @@ -28,7 +32,7 @@ struct ShaderRendererUtil IDevice* device, ComPtr& textureOut); - /// Create the BufferResource using the renderer from the contents of inputDesc + /// Create the BufferResource using the renderer from the contents of inputDesc static Slang::Result createBuffer( const InputBufferDesc& inputDesc, size_t bufferSize, @@ -37,4 +41,4 @@ struct ShaderRendererUtil ComPtr& bufferOut); }; -} // renderer_test +} // namespace renderer_test -- cgit v1.2.3