From 47c10ebddd6d7f644a27bb045e4acc0dfe250f0b Mon Sep 17 00:00:00 2001 From: Zhou Zhenglong Date: Mon, 20 Jan 2025 18:57:46 +0800 Subject: [PATCH] change storage image to sampler texture --- cocos/rendering/define.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/rendering/define.ts b/cocos/rendering/define.ts index dda9faacc1a..4535035d3fd 100644 --- a/cocos/rendering/define.ts +++ b/cocos/rendering/define.ts @@ -975,10 +975,10 @@ const UNIFORM_REFLECTION_STORAGE_NAME = 'cc_reflectionStorage'; export const UNIFORM_REFLECTION_STORAGE_BINDING = ModelLocalBindings.STORAGE_REFLECTION; const UNIFORM_REFLECTION_STORAGE_DESCRIPTOR = new DescriptorSetLayoutBinding( UNIFORM_REFLECTION_STORAGE_BINDING, - DescriptorType.STORAGE_IMAGE, + DescriptorType.SAMPLER_TEXTURE, 1, ShaderStageFlagBit.COMPUTE, - MemoryAccessBit.READ_WRITE, + MemoryAccessBit.READ_ONLY, ViewDimension.TEX2D, SampleType.FLOAT, Format.RGBA8,