You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to query the quantization bits used by an attribute without going through the process of skipping the attribute transform, initializing an AttributeQuantizationTransform, and getting the quantization bits from the transform?
Basically we want to decode to a float array if quantization bits is greater than 16, otherwise, decode to a uint16 array and dequantize in the shader. It's not clear if this is possible using the JavaScript API since we can't query the quantization bits until we have already called SkipAttributeTransform and initialized a AttributeQuantizationTransform.
This workflow would require to get the quantization settings before the decoding step which is not really feasible for the current decoder design (quantization settings are not stored in any predefined byte position). I would recommend sending the quantization settings separately from the encoded data. This should allow you to implement the behavior that you want without modifying the decoder.
Is it possible to query the quantization bits used by an attribute without going through the process of skipping the attribute transform, initializing an
AttributeQuantizationTransform
, and getting the quantization bits from the transform?Basically we want to decode to a float array if quantization bits is greater than 16, otherwise, decode to a uint16 array and dequantize in the shader. It's not clear if this is possible using the JavaScript API since we can't query the quantization bits until we have already called
SkipAttributeTransform
and initialized aAttributeQuantizationTransform
.Existing code looks something like this:
The text was updated successfully, but these errors were encountered: