diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-29 14:49:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 14:49:26 +0800 |
| commit | f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch) | |
| tree | ea1d61342cd29368e19135000ec2948813096205 /tools/render-test/shader-renderer-util.h | |
| parent | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff) | |
format
* format
* Minor test fixes
* enable checking cpp format in ci
Diffstat (limited to 'tools/render-test/shader-renderer-util.h')
| -rw-r--r-- | tools/render-test/shader-renderer-util.h | 18 |
1 files changed, 11 insertions, 7 deletions
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 <slang-rhi.h> #include "shader-input-layout.h" -namespace renderer_test { +#include <slang-rhi.h> + +namespace renderer_test +{ using namespace Slang; ComPtr<ISampler> _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<ITexture>& 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<ITexture>& 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<IBuffer>& bufferOut); }; -} // renderer_test +} // namespace renderer_test |
