mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[d3d9] Make unbound textures return (0, 0, 0, 1) (fixed func)
Fixes sky in Ferentus Herrcot Xiones https://github.com/Joshua-Ashton/d9vk/issues/306
This commit is contained in:
parent
4810a5dc72
commit
35a9934cde
@ -1564,6 +1564,8 @@ namespace dxvk {
|
|||||||
texture = m_module.opImageSampleProjImplicitLod(m_vec4Type, imageVarId, texcoord, imageOperands);
|
texture = m_module.opImageSampleProjImplicitLod(m_vec4Type, imageVarId, texcoord, imageOperands);
|
||||||
else
|
else
|
||||||
texture = m_module.opImageSampleImplicitLod(m_vec4Type, imageVarId, texcoord, imageOperands);
|
texture = m_module.opImageSampleImplicitLod(m_vec4Type, imageVarId, texcoord, imageOperands);
|
||||||
|
|
||||||
|
texture = m_module.opSelect(m_vec4Type, m_ps.samplers[i].bound, texture, m_module.constvec4f32(0.0f, 0.0f, 0.0f, 1.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
processedTexture = true;
|
processedTexture = true;
|
||||||
@ -1992,6 +1994,11 @@ namespace dxvk {
|
|||||||
const uint32_t bindingId = computeResourceSlotId(DxsoProgramType::PixelShader,
|
const uint32_t bindingId = computeResourceSlotId(DxsoProgramType::PixelShader,
|
||||||
DxsoBindingType::ColorImage, i);
|
DxsoBindingType::ColorImage, i);
|
||||||
|
|
||||||
|
sampler.bound = m_module.specConstBool(true);
|
||||||
|
m_module.decorateSpecId(sampler.bound, bindingId);
|
||||||
|
m_module.setDebugName(sampler.bound,
|
||||||
|
str::format("s", i, "_bound").c_str());
|
||||||
|
|
||||||
m_module.decorateDescriptorSet(sampler.varId, 0);
|
m_module.decorateDescriptorSet(sampler.varId, 0);
|
||||||
m_module.decorateBinding(sampler.varId, bindingId);
|
m_module.decorateBinding(sampler.varId, bindingId);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user