[SPIR-V] Fix fetch constant LOD bias signedness

This commit is contained in:
Triang3l 2022-06-25 16:33:18 +03:00
parent d8b0227cbd
commit 5dca11a892
1 changed files with 1 additions and 1 deletions

View File

@ -1600,7 +1600,7 @@ void SpirvShaderTranslator::ProcessTextureFetchInstruction(
spv::Id lod = builder_->createBinOp(
spv::OpFMul, type_float_,
builder_->createUnaryOp(
spv::OpConvertUToF, type_float_,
spv::OpConvertSToF, type_float_,
builder_->createTriOp(spv::OpBitFieldSExtract, type_int_,
fetch_constant_word_4_signed,
builder_->makeUintConstant(12),