mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Cleanup.
This commit is contained in:
parent
60c7072558
commit
a5934b93e9
2 changed files with 7 additions and 6 deletions
|
@ -1594,8 +1594,8 @@ again:
|
|||
|
||||
if (windowsVersionIs(Condition::GreaterEqual, 0x0602) )
|
||||
{
|
||||
first = RendererType::Direct3D12;
|
||||
second = RendererType::Direct3D11;
|
||||
first = RendererType::Direct3D11;
|
||||
second = RendererType::Direct3D12;
|
||||
if (!s_rendererCreator[second].supported)
|
||||
{
|
||||
second = RendererType::Direct3D9;
|
||||
|
@ -1662,7 +1662,7 @@ again:
|
|||
}
|
||||
else
|
||||
{
|
||||
#if 1
|
||||
#if 0
|
||||
if (s_rendererCreator[RendererType::Metal].supported)
|
||||
{
|
||||
_type = RendererType::Metal;
|
||||
|
|
|
@ -3906,6 +3906,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|||
const bool computeWrite = 0 != (m_flags&BGFX_TEXTURE_COMPUTE_WRITE);
|
||||
const bool renderTarget = 0 != (m_flags&BGFX_TEXTURE_RT_MASK);
|
||||
const bool srgb = 0 != (m_flags&BGFX_TEXTURE_SRGB) || imageContainer.m_srgb;
|
||||
const bool blit = 0 != (m_flags&BGFX_TEXTURE_BLIT_DST);
|
||||
const uint32_t msaaQuality = bx::uint32_satsub( (m_flags&BGFX_TEXTURE_RT_MSAA_MASK)>>BGFX_TEXTURE_RT_MSAA_SHIFT, 1);
|
||||
const DXGI_SAMPLE_DESC& msaa = s_msaa[msaaQuality];
|
||||
|
||||
|
@ -3943,7 +3944,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|||
desc.MipLevels = numMips;
|
||||
desc.Format = format;
|
||||
desc.SampleDesc = msaa;
|
||||
desc.Usage = kk == 0 ? D3D11_USAGE_DEFAULT : D3D11_USAGE_IMMUTABLE;
|
||||
desc.Usage = kk == 0 || blit ? D3D11_USAGE_DEFAULT : D3D11_USAGE_IMMUTABLE;
|
||||
desc.BindFlags = bufferOnly ? 0 : D3D11_BIND_SHADER_RESOURCE;
|
||||
desc.CPUAccessFlags = 0;
|
||||
|
||||
|
@ -3991,7 +3992,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|||
desc.Depth = imageContainer.m_depth;
|
||||
desc.MipLevels = imageContainer.m_numMips;
|
||||
desc.Format = format;
|
||||
desc.Usage = kk == 0 ? D3D11_USAGE_DEFAULT : D3D11_USAGE_IMMUTABLE;
|
||||
desc.Usage = kk == 0 || blit ? D3D11_USAGE_DEFAULT : D3D11_USAGE_IMMUTABLE;
|
||||
desc.BindFlags = D3D11_BIND_SHADER_RESOURCE;
|
||||
desc.CPUAccessFlags = 0;
|
||||
desc.MiscFlags = 0;
|
||||
|
|
Loading…
Reference in a new issue