mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
Renamed BGFX_TEXTURE_RT_BUFFER_ONLY to more descriptive BGFX_TEXTURE_RT_WRITE_ONLY.
This commit is contained in:
@@ -1860,8 +1860,8 @@ data.NumQualityLevels = 0;
|
||||
if (isValid(frameBuffer.m_depth) )
|
||||
{
|
||||
TextureD3D12& texture = m_textures[frameBuffer.m_depth.idx];
|
||||
const bool bufferOnly = 0 != (texture.m_flags&BGFX_TEXTURE_RT_BUFFER_ONLY);
|
||||
if (!bufferOnly)
|
||||
const bool writeOnly = 0 != (texture.m_flags&BGFX_TEXTURE_RT_WRITE_ONLY);
|
||||
if (!writeOnly)
|
||||
{
|
||||
texture.setState(m_commandList, D3D12_RESOURCE_STATE_DEPTH_READ);
|
||||
}
|
||||
@@ -3801,7 +3801,7 @@ data.NumQualityLevels = 0;
|
||||
blockHeight = blockInfo.blockHeight;
|
||||
}
|
||||
|
||||
const bool bufferOnly = 0 != (m_flags&BGFX_TEXTURE_RT_BUFFER_ONLY);
|
||||
const bool writeOnly = 0 != (m_flags&BGFX_TEXTURE_RT_WRITE_ONLY);
|
||||
const bool computeWrite = 0 != (m_flags&BGFX_TEXTURE_COMPUTE_WRITE);
|
||||
const bool renderTarget = 0 != (m_flags&BGFX_TEXTURE_RT_MASK);
|
||||
|
||||
@@ -3813,7 +3813,7 @@ data.NumQualityLevels = 0;
|
||||
, textureHeight
|
||||
, imageContainer.m_cubeMap ? "x6" : ""
|
||||
, renderTarget ? 'x' : ' '
|
||||
, bufferOnly ? 'x' : ' '
|
||||
, writeOnly ? 'x' : ' '
|
||||
, computeWrite ? 'x' : ' '
|
||||
, swizzle ? " (swizzle BGRA8 -> RGBA8)" : ""
|
||||
);
|
||||
@@ -3969,7 +3969,7 @@ data.NumQualityLevels = 0;
|
||||
resourceDesc.Flags |= D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET;
|
||||
}
|
||||
|
||||
if (bufferOnly)
|
||||
if (writeOnly)
|
||||
{
|
||||
resourceDesc.Flags |= D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE;
|
||||
state &= ~D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE;
|
||||
|
||||
Reference in New Issue
Block a user