[GPU] Fix 20e4 bit span in Depth20e4To32 comments

This commit is contained in:
bomabomabomaboma
2026-07-31 23:10:35 +00:00
committed by Radosław Gliński
parent e519d59e40
commit ac42250688
2 changed files with 2 additions and 2 deletions

View File

@@ -584,7 +584,7 @@ class DxbcShaderTranslator : public ShaderTranslator {
uint32_t f32_temp, uint32_t f32_temp_component, uint32_t temp_temp,
uint32_t temp_temp_component, bool round_to_nearest_even,
bool remap_from_0_to_0_5);
// Converts the 20e4 number in bits [f24_shift, f24_shift + 10) to a 32-bit
// Converts the 20e4 number in bits [f24_shift, f24_shift + 24) to a 32-bit
// float. Two temporaries must be different, but one can be the same as the
// source. The destination may be anything writable. If remap_to_0_to_0_5 is
// true, 0...1 in float24 will be remaped to 0...0.5 in float32.

View File

@@ -468,7 +468,7 @@ class SpirvShaderTranslator : public ShaderTranslator {
bool round_to_nearest_even,
bool remap_from_0_to_0_5,
spv::Id ext_inst_glsl_std_450);
// Converts the 20e4 number in bits [f24_shift, f24_shift + 10) to a 32-bit
// Converts the 20e4 number in bits [f24_shift, f24_shift + 24) to a 32-bit
// float.
static spv::Id Depth20e4To32(SpirvBuilder& builder, spv::Id f24_uint_scalar,
uint32_t f24_shift, bool remap_to_0_to_0_5,