Fixed DirectX 11 render compile errors

This commit is contained in:
m.milanovic@levi9.com 2014-09-18 15:33:09 +02:00
parent dc582c76ee
commit 3e572a9616
2 changed files with 8 additions and 7 deletions

View file

@ -115,7 +115,7 @@ namespace bgfx
D3D11_CULL_BACK,
};
static DXGI_FORMAT s_colorFormat[] =
/*static DXGI_FORMAT s_colorFormat[] =
{
DXGI_FORMAT_UNKNOWN, // ignored
DXGI_FORMAT_R8G8B8A8_UNORM,
@ -124,7 +124,7 @@ namespace bgfx
DXGI_FORMAT_R16G16B16A16_FLOAT,
DXGI_FORMAT_R16_FLOAT,
DXGI_FORMAT_R32_FLOAT,
};
};*/
static const DXGI_FORMAT s_depthFormat[] =
{
@ -578,7 +578,7 @@ namespace bgfx
if (BX_ENABLED(BGFX_CONFIG_DEBUG) )
{
ID3D11InfoQueue* infoQueue;
hr = m_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void**)&infoQueue);
hr = m_device->QueryInterface(IID_ID3D11InfoQueue, (void**)&infoQueue);
if (SUCCEEDED(hr) )
{
@ -2105,6 +2105,7 @@ namespace bgfx
, regIndex
, regCount
);
BX_UNUSED(kind);
}
m_constantBuffer->finish();
@ -2767,7 +2768,7 @@ namespace bgfx
commitShaderConstants();
}
}
BX_UNUSED(programChanged);
ID3D11UnorderedAccessView* uav[BGFX_MAX_COMPUTE_BINDINGS] = {};
ID3D11ShaderResourceView* srv[BGFX_MAX_COMPUTE_BINDINGS] = {};
ID3D11SamplerState* sampler[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS] = {};

View file

@ -44,7 +44,7 @@ namespace bgfx
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() )
{
return it->second;
@ -55,7 +55,7 @@ namespace bgfx
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() )
{
DX_RELEASE_WARNONLY(it->second, 0);
@ -65,7 +65,7 @@ namespace bgfx
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);
it->second->Release();