File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ static bool TextureFormatIsComputeWritable[] = {
195
195
true, // R16_UNORM
196
196
true, // R16G16_UNORM
197
197
true, // R16G16B16A16_UNORM
198
- false, // R10G10B10A2_UNORM
198
+ true, // R10G10B10A2_UNORM
199
199
false, // B5G6R5_UNORM
200
200
false, // B5G5R5A1_UNORM
201
201
false, // B4G4R4A4_UNORM
@@ -220,7 +220,7 @@ static bool TextureFormatIsComputeWritable[] = {
220
220
true, // R32_FLOAT
221
221
true, // R32G32_FLOAT
222
222
true, // R32G32B32A32_FLOAT
223
- false, // R11G11B10_UFLOAT
223
+ true, // R11G11B10_UFLOAT
224
224
true, // R8_UINT
225
225
true, // R8G8_UINT
226
226
true, // R8G8B8A8_UINT
@@ -839,7 +839,7 @@ bool SDL_GPUTextureSupportsFormat(
839
839
CHECK_TEXTUREFORMAT_ENUM_INVALID (format , false)
840
840
}
841
841
842
- if ((usage & SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_WRITE ) ||
842
+ if ((usage & SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_WRITE ) ||
843
843
(usage & SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_SIMULTANEOUS_READ_WRITE )) {
844
844
if (!TextureFormatIsComputeWritable [format ]) {
845
845
return false;
You can’t perform that action at this time.
0 commit comments