Fixed DirectX 11 render compile errors
This commit is contained in:
parent
dc582c76ee
commit
3e572a9616
@ -115,7 +115,7 @@ namespace bgfx
|
|||||||
D3D11_CULL_BACK,
|
D3D11_CULL_BACK,
|
||||||
};
|
};
|
||||||
|
|
||||||
static DXGI_FORMAT s_colorFormat[] =
|
/*static DXGI_FORMAT s_colorFormat[] =
|
||||||
{
|
{
|
||||||
DXGI_FORMAT_UNKNOWN, // ignored
|
DXGI_FORMAT_UNKNOWN, // ignored
|
||||||
DXGI_FORMAT_R8G8B8A8_UNORM,
|
DXGI_FORMAT_R8G8B8A8_UNORM,
|
||||||
@ -124,7 +124,7 @@ namespace bgfx
|
|||||||
DXGI_FORMAT_R16G16B16A16_FLOAT,
|
DXGI_FORMAT_R16G16B16A16_FLOAT,
|
||||||
DXGI_FORMAT_R16_FLOAT,
|
DXGI_FORMAT_R16_FLOAT,
|
||||||
DXGI_FORMAT_R32_FLOAT,
|
DXGI_FORMAT_R32_FLOAT,
|
||||||
};
|
};*/
|
||||||
|
|
||||||
static const DXGI_FORMAT s_depthFormat[] =
|
static const DXGI_FORMAT s_depthFormat[] =
|
||||||
{
|
{
|
||||||
@ -578,7 +578,7 @@ namespace bgfx
|
|||||||
if (BX_ENABLED(BGFX_CONFIG_DEBUG) )
|
if (BX_ENABLED(BGFX_CONFIG_DEBUG) )
|
||||||
{
|
{
|
||||||
ID3D11InfoQueue* infoQueue;
|
ID3D11InfoQueue* infoQueue;
|
||||||
hr = m_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void**)&infoQueue);
|
hr = m_device->QueryInterface(IID_ID3D11InfoQueue, (void**)&infoQueue);
|
||||||
|
|
||||||
if (SUCCEEDED(hr) )
|
if (SUCCEEDED(hr) )
|
||||||
{
|
{
|
||||||
@ -2105,6 +2105,7 @@ namespace bgfx
|
|||||||
, regIndex
|
, regIndex
|
||||||
, regCount
|
, regCount
|
||||||
);
|
);
|
||||||
|
BX_UNUSED(kind);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_constantBuffer->finish();
|
m_constantBuffer->finish();
|
||||||
@ -2767,7 +2768,7 @@ namespace bgfx
|
|||||||
commitShaderConstants();
|
commitShaderConstants();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BX_UNUSED(programChanged);
|
||||||
ID3D11UnorderedAccessView* uav[BGFX_MAX_COMPUTE_BINDINGS] = {};
|
ID3D11UnorderedAccessView* uav[BGFX_MAX_COMPUTE_BINDINGS] = {};
|
||||||
ID3D11ShaderResourceView* srv[BGFX_MAX_COMPUTE_BINDINGS] = {};
|
ID3D11ShaderResourceView* srv[BGFX_MAX_COMPUTE_BINDINGS] = {};
|
||||||
ID3D11SamplerState* sampler[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS] = {};
|
ID3D11SamplerState* sampler[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS] = {};
|
||||||
|
@ -44,7 +44,7 @@ namespace bgfx
|
|||||||
|
|
||||||
Ty* find(uint64_t _id)
|
Ty* find(uint64_t _id)
|
||||||
{
|
{
|
||||||
HashMap::iterator it = m_hashMap.find(_id);
|
typename HashMap::iterator it = m_hashMap.find(_id);
|
||||||
if (it != m_hashMap.end() )
|
if (it != m_hashMap.end() )
|
||||||
{
|
{
|
||||||
return it->second;
|
return it->second;
|
||||||
@ -55,7 +55,7 @@ namespace bgfx
|
|||||||
|
|
||||||
void invalidate(uint64_t _id)
|
void invalidate(uint64_t _id)
|
||||||
{
|
{
|
||||||
HashMap::iterator it = m_hashMap.find(_id);
|
typename HashMap::iterator it = m_hashMap.find(_id);
|
||||||
if (it != m_hashMap.end() )
|
if (it != m_hashMap.end() )
|
||||||
{
|
{
|
||||||
DX_RELEASE_WARNONLY(it->second, 0);
|
DX_RELEASE_WARNONLY(it->second, 0);
|
||||||
@ -65,7 +65,7 @@ namespace bgfx
|
|||||||
|
|
||||||
void invalidate()
|
void invalidate()
|
||||||
{
|
{
|
||||||
for (HashMap::iterator it = m_hashMap.begin(), itEnd = m_hashMap.end(); it != itEnd; ++it)
|
for (typename HashMap::iterator it = m_hashMap.begin(), itEnd = m_hashMap.end(); it != itEnd; ++it)
|
||||||
{
|
{
|
||||||
DX_CHECK_REFCOUNT(it->second, 1);
|
DX_CHECK_REFCOUNT(it->second, 1);
|
||||||
it->second->Release();
|
it->second->Release();
|
||||||
|
Loading…
Reference in New Issue
Block a user