mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 23:49:12 +00:00
GPU: Fix multisample texture usage validation
This commit is contained in:
parent
926d143966
commit
c499f79fe9
1 changed files with 5 additions and 4 deletions
|
@ -867,7 +867,8 @@ SDL_GPUTexture *SDL_CreateGPUTexture(
|
|||
SDL_assert_release(!"For any texture: usage cannot contain both GRAPHICS_STORAGE_READ and SAMPLER");
|
||||
failed = true;
|
||||
}
|
||||
if (createinfo->sample_count > 1 && (createinfo->usage & (SDL_GPU_TEXTUREUSAGE_SAMPLER |
|
||||
if (createinfo->sample_count > SDL_GPU_SAMPLECOUNT_1 &&
|
||||
(createinfo->usage & (SDL_GPU_TEXTUREUSAGE_SAMPLER |
|
||||
SDL_GPU_TEXTUREUSAGE_GRAPHICS_STORAGE_READ |
|
||||
SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_READ |
|
||||
SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_WRITE))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue