Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy staging texture to 8xSampled target, error not compatible textures #517

Open
WhitePhoera opened this issue Sep 19, 2023 · 0 comments
Open

Comments

@WhitePhoera
Copy link

WhitePhoera commented Sep 19, 2023

On windows, i try to do async texture loading(well, async as possible).
i create staging texture first:

var td = TextureDescription.Texture2D(width, heigth, 1, 1, PixelFormat.R8_G8_B8_A8_UNorm, TextureUsage.Staging);

then i map/fill/unmap staging texture, then i create target texture:

var td2 = TextureDescription.Texture2D(state.StagingTexture!.Width, state.StagingTexture.Height, 1, 1, PixelFormat.R8_G8_B8_A8_UNorm, TextureUsage.Sampled, TextureSampleCount.Count8);

when i try to copy texture from staging to target one:

CommandList.CopyTexture(state.StagingTexture, texture);

i have an exception:

Source and destination Textures are not compatible to be copied.

If i try to add TextureSampleCount to staging texture, on DX11 backend i have an error, on Vulkan i have texture with black lines.
Do i miss something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant