8000 SDL3 GPU: SDL_GenerateMipmapsForGPUTexture triggers assertion on D3D12 · Issue #12993 · libsdl-org/SDL · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
SDL3 GPU: SDL_GenerateMipmapsForGPUTexture triggers assertion on D3D12 #12993
Closed
@dbolin

Description

@dbolin

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0