-
Notifications
You must be signed in to change notification settings - Fork 65
Work on property pool HLSL impl #649
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: master
Are you sure you want to change the base?
Changes from 2 commits
a1747c6
adc4d57
d9ddf41
1707158
279c220
4be1a3c
3570c03
c44bb49
9460e24
88d1d00
52d6972
706000d
b625153
ef4b779
b8db8c9
1a0c998
99d80a7
61604ee
7ac728b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,9 +34,12 @@ struct TransferRequest | |
uint32_t fill: 1; | ||
uint32_t srcIndexSizeLog2 : 2; | ||
uint32_t dstIndexSizeLog2 : 2; | ||
|
||
// Reads a TransferRequest from a BDA | ||
static TransferRequest newFromAddress(const uint64_t address); | ||
}; | ||
|
||
struct GlobalPushContants | ||
struct TransferDispatchInfo | ||
{ | ||
// BDA address (GPU pointer) into the transfer commands buffer | ||
uint64_t transferCommandsAddress; | ||
|
@@ -49,6 +52,9 @@ struct GlobalPushContants | |
|
||
NBL_CONSTEXPR uint32_t MaxPropertiesPerDispatch = 128; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there any reason to keep this around anymore? |
||
|
||
// TODO: instead use some sort of replace function for getting optimal size? | ||
NBL_CONSTEXPR uint32_t OptimalDispatchSize = 256; | ||
Comment on lines
+55
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can use the device JIT to query the max compute dispatch size, I'd round it down to nearest PoT though, so the divisions aren't expensive |
||
|
||
} | ||
} | ||
} | ||
|
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.
keep it with the struct
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.
The struct is shared with c++ code, so i wouldn't be able to use vk::rawbufferread; I could take the 64 bit value though
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.
you can use
#ifndef __HLSL_VERSION
in the impl of the method