From c9fa70f114e83c0b91348d1bc25b9fa2f0c1c5df Mon Sep 17 00:00:00 2001 From: Simon Kallweit Date: Sat, 31 Aug 2024 22:47:13 +0200 Subject: [PATCH] minor cleanup --- include/slang-rhi.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/slang-rhi.h b/include/slang-rhi.h index d94d6f2c..5eefb02a 100644 --- a/include/slang-rhi.h +++ b/include/slang-rhi.h @@ -2247,9 +2247,9 @@ class IDevice : public ISlangUnknown const SubresourceData* initData = nullptr ) { - ComPtr resource; - SLANG_RETURN_NULL_ON_FAIL(createTexture(desc, initData, resource.writeRef())); - return resource; + ComPtr texture; + SLANG_RETURN_NULL_ON_FAIL(createTexture(desc, initData, texture.writeRef())); + return texture; } virtual SLANG_NO_THROW Result SLANG_MCALL @@ -2268,9 +2268,9 @@ class IDevice : public ISlangUnknown inline SLANG_NO_THROW ComPtr createBuffer(const BufferDesc& desc, const void* initData = nullptr) { - ComPtr resource; - SLANG_RETURN_NULL_ON_FAIL(createBuffer(desc, initData, resource.writeRef())); - return resource; + ComPtr buffer; + SLANG_RETURN_NULL_ON_FAIL(createBuffer(desc, initData, buffer.writeRef())); + return buffer; } virtual SLANG_NO_THROW Result SLANG_MCALL @@ -2451,9 +2451,9 @@ class IDevice : public ISlangUnknown inline ComPtr createRenderPipeline(const RenderPipelineDesc& desc) { - ComPtr state; - SLANG_RETURN_NULL_ON_FAIL(createRenderPipeline(desc, state.writeRef())); - return state; + ComPtr pipeline; + SLANG_RETURN_NULL_ON_FAIL(createRenderPipeline(desc, pipeline.writeRef())); + return pipeline; } virtual SLANG_NO_THROW Result SLANG_MCALL @@ -2461,9 +2461,9 @@ class IDevice : public ISlangUnknown inline ComPtr createComputePipeline(const ComputePipelineDesc& desc) { - ComPtr state; - SLANG_RETURN_NULL_ON_FAIL(createComputePipeline(desc, state.writeRef())); - return state; + ComPtr pipeline; + SLANG_RETURN_NULL_ON_FAIL(createComputePipeline(desc, pipeline.writeRef())); + return pipeline; } virtual SLANG_NO_THROW Result SLANG_MCALL