Closed
Description
Using a newly created texture, calling SDL_GenerateMipmapsForGPUTexture with an otherwise empty command buffer triggers the assertion:
Assertion failure at SDL_BindGPUFragmentSamplers_REAL (D:\a\SDL\SDL\src\gpu\SDL_gpu.c:1839), triggered 1 time:
'!"Texture cannot be simultaneously bound as a color target and a sampler!"'
This does not occur with Vulkan, and the device is created with debug mode on in both cases. (Validation layers enabled, expect debug level performance! message is logged, and I see other messages from the debug layers)
The texture is created with the following properties:
type = SDL_GPU_TEXTURETYPE_2D_ARRAY
format = SDL_GPU_TEXTUREFORMAT_R8G8B8A8_UNORM
usage = SDL_GPU_TEXTUREUSAGE_SAMPLER | SDL_GPU_TEXTUREUSAGE_COLOR_TARGET
layer_count_or_depth = 1
num_levels = 6
Window 10
SDL revision: SDL3-3.3.0-ca47dc5
(also tried with SDL revision: release-3.2.12-0-g5ac37a8ff)
<
4633
div height="sm" width="random" class="Box-sc-g0xbh4-0 LoadingSkeleton-sc-695d630a-0 hpcToU iXfpGx">
Metadata
Metadata
Assignees
Labels
No labels