mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-11-12 11:05:33 +00:00
D3D12, GL: Fixed write-only color render targets. (#4099)
This commit is contained in:
@@ -7271,8 +7271,11 @@ namespace bgfx { namespace d3d12
|
||||
|
||||
if (writeOnly)
|
||||
{
|
||||
resourceDesc.Flags |= D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE;
|
||||
state &= ~D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE;
|
||||
resourceDesc.Flags |= depth
|
||||
? D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE
|
||||
: D3D12_RESOURCE_FLAG_NONE
|
||||
;
|
||||
state &= ~D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE;
|
||||
}
|
||||
|
||||
if (computeWrite)
|
||||
|
||||
Reference in New Issue
Block a user