mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-18 22:54:15 +01:00
[dxbc] Fix texture component count for OpImageQueryLod
Not a bug, but we don't need the extra component when dealing with array images.
This commit is contained in:
parent
0bf97993c6
commit
f30923718f
@ -2684,8 +2684,8 @@ namespace dxvk {
|
|||||||
const uint32_t samplerId = samplerReg.idx[0].offset;
|
const uint32_t samplerId = samplerReg.idx[0].offset;
|
||||||
|
|
||||||
// Load texture coordinates
|
// Load texture coordinates
|
||||||
const DxbcRegisterValue coord = emitLoadTexCoord(
|
const DxbcRegisterValue coord = emitRegisterLoad(texCoordReg,
|
||||||
texCoordReg, m_textures.at(textureId).imageInfo);
|
DxbcRegMask::firstN(getTexLayerDim(m_textures.at(textureId).imageInfo)));
|
||||||
|
|
||||||
// Query the LOD. The result is a two-dimensional float32
|
// Query the LOD. The result is a two-dimensional float32
|
||||||
// vector containing the mip level and virtual LOD numbers.
|
// vector containing the mip level and virtual LOD numbers.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user