-
Notifications
You must be signed in to change notification settings - Fork 68
Fixes to quantized sequence and scramble decode #987
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?
Conversation
…mconstant in quantized sequence
…o order stored values from LSB to MSB
… for taking unorm input
| struct decode_before_scramble_helper | ||
| { | ||
| using scalar_type = typename Q::scalar_type; | ||
| using unsigned_scalar_type = typename Q::scalar_type; |
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.
scalar_type is a misnomer, I'd at least call it storage_scalar_type
| { | ||
| NBL_CONSTEXPR_STATIC_INLINE uint16_t Dim = Q::Dimension; | ||
| using sequence_type = Q; | ||
| using unorm_vec_type = vector<F, Dim>; |
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.
total misnomer, F is a floating point type, so call it uniform_vec_type or input_type
| using unsigned_scalar_type = unsigned_integer_of_size_t<sizeof(F)>; | ||
| using uvec_type = vector<unsigned_scalar_type, Dim>; |
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.
unsigned_scalar_type and uvbec_type are misnomers, I'd call them uniform_storage_scalar_type and uniform_storage_type and also add a comment that explains they're the type which holds the uint bit representation of a unorm thats allowed to have 1s in MSB (normalized w.r.t whole scalar)
|
@keptsecret the HLSL Path Tracer (on the other branch) works with a quantized sequence from the latest commit here, correct? |
|
all of those asserts is typo & false trigger
since index can be Nabla/include/nbl/builtin/hlsl/sampling/quantized_sequence.hlsl Lines 165 to 170 in cd67d94
should be |
Yep, last I checked still works |
No description provided.