-
Notifications
You must be signed in to change notification settings - Fork 12
Add support for UAV Counters #80
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
base: main
Are you sure you want to change the base?
Conversation
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.
LGTM!
@@ -89,6 +89,14 @@ static DXGI_FORMAT getRawDXFormat(Resource &R) { | |||
return DXGI_FORMAT_UNKNOWN; | |||
} | |||
|
|||
static uint32_t getUAVBufferSize(Resource &R) { |
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.
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 value is a pseudo size value for Resource R
and the type of R.size()
is uint32_t
and imo it makes the most sense to keep them aligned
This PR add support for HLSL code that updates the counter on a UAV Resource and reading it back to check against.