-
Notifications
You must be signed in to change notification settings - Fork 3
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
D3D12 Xbox work continued #233
Conversation
4da2339
to
bff2f0c
Compare
8d15a6f
to
95bf26e
Compare
bff2f0c
to
7097ed8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be okay as long as the examples and maybe the FNA3D traces are okay, stuff like HDR can be added when someone really needs it.
3856fbc
to
7ef675e
Compare
We're having trouble with the swapchain resizing, but we're like 99% sure it's an OS bug - let's rebase and get this in, once we file a bug we can just throw a FIXME in an appropriate spot pointing to the dev forums or something. |
I agree, I think this is a bug somewhere and not something that will require a redesign. |
… include xbox headers
src/gpu/d3d12/SDL_gpu_d3d12.c
Outdated
{ | ||
/* NOTE: order matters here! */ | ||
|
||
if (usageFlags & SDL_GPU_TEXTUREUSAGE_SAMPLER_BIT) { | ||
if (isSwapchainTexture) { | ||
return D3D12_RESOURCE_STATE_PRESENT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're gonna do this, we should probably change the resource barrier in AcquireSwapchainTexture to use TextureSubresourceTransitionFromDefaultUsage.
Working on the remaining pieces for #7