Skip to content

Commit

Permalink
fix #7098 missing texture format (#7099)
Browse files Browse the repository at this point in the history
  • Loading branch information
MAG-AdrianMeredith authored and Martin Valigursky committed Nov 6, 2024
1 parent eb8aae8 commit 99c5217
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/graphics/webgpu/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import {
PIXELFORMAT_DXT1_SRGB, PIXELFORMAT_DXT3_SRGBA, PIXELFORMAT_DXT5_SRGBA, PIXELFORMAT_PVRTC_2BPP_SRGB_1,
PIXELFORMAT_PVRTC_2BPP_SRGBA_1, PIXELFORMAT_PVRTC_4BPP_SRGB_1, PIXELFORMAT_PVRTC_4BPP_SRGBA_1,
PIXELFORMAT_ETC2_SRGB, PIXELFORMAT_ETC2_SRGBA, PIXELFORMAT_SBGRA8,
PIXELFORMAT_BC6F, PIXELFORMAT_BC6UF, PIXELFORMAT_BC7, PIXELFORMAT_BC7_SRGBA
PIXELFORMAT_BC6F, PIXELFORMAT_BC6UF, PIXELFORMAT_BC7, PIXELFORMAT_BC7_SRGBA,
PIXELFORMAT_ASTC_4x4_SRGB
} from '../constants.js';

// map of PIXELFORMAT_*** to GPUTextureFormat
Expand Down Expand Up @@ -87,3 +88,4 @@ gpuTextureFormats[PIXELFORMAT_PVRTC_4BPP_SRGBA_1] = '';
gpuTextureFormats[PIXELFORMAT_ETC2_SRGB] = 'etc2-rgb8unorm-srgb';
gpuTextureFormats[PIXELFORMAT_ETC2_SRGBA] = 'etc2-rgba8unorm-srgb';
gpuTextureFormats[PIXELFORMAT_BC7_SRGBA] = 'bc7-rgba-unorm-srgb';
gpuTextureFormats[PIXELFORMAT_ASTC_4x4_SRGB] = 'astc-4x4-unorm-srgb';

0 comments on commit 99c5217

Please sign in to comment.