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

Support frame buffering without descriptor overwrite #612

Open
tom-huntington opened this issue Jul 23, 2024 · 0 comments
Open

Support frame buffering without descriptor overwrite #612

tom-huntington opened this issue Jul 23, 2024 · 0 comments

Comments

@tom-huntington
Copy link

tom-huntington commented Jul 23, 2024

DML owns the Uav descriptors for the input and output buffer. This means if you want to frame buffer you have to frame buffer the entire dispatchable (or else the input descriptors will be overwritten before the gpu has use the descriptor). This is wasteful as you only need to framebuffer the input and output buffers not the compute shaders and intermediate buffers (the buffers DML owns).

You could extent the API, so that the application could own the input and output descriptors rather than DML:

struct DML_BUFFER_BINDING1 {
  D3D12_GPU_DESCRIPTOR_HANDLE Descriptor;
  UINT64         SizeInBytes;
};
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