mirror of
https://github.com/Inori/GPCS4.git
synced 2024-06-02 19:38:19 -04:00
fix texture coordinate type
This commit is contained in:
parent
0fcb0e6e47
commit
9777336757
|
@ -625,7 +625,9 @@ namespace sce::gcn
|
|||
coord.id = m_module.opCompositeConstruct(getVectorTypeId(coord.type),
|
||||
components.size(), components.data());
|
||||
// spir-v image instruction requires float coordinate
|
||||
coord = emitRegisterBitcast(coord, GcnScalarType::Float32);
|
||||
coord.type.ctype = GcnScalarType::Float32;
|
||||
coord.id = m_module.opConvertUtoF(getVectorTypeId(coord.type),
|
||||
coord.id);
|
||||
}
|
||||
|
||||
auto result = emitCalcTexCoord(coord, imageInfo);
|
||||
|
|
Loading…
Reference in a new issue