|
@@ -655,11 +655,11 @@ namespace bgfx { namespace d3d11
|
|
|
public:
|
|
public:
|
|
|
VRImplOVRD3D11();
|
|
VRImplOVRD3D11();
|
|
|
|
|
|
|
|
- virtual bool createSwapChain(const VRDesc& _desc, int _msaaSamples, int _mirrorWidth, int _mirrorHeight) BX_OVERRIDE;
|
|
|
|
|
- virtual void destroySwapChain() BX_OVERRIDE;
|
|
|
|
|
- virtual void destroyMirror() BX_OVERRIDE;
|
|
|
|
|
- virtual void makeRenderTargetActive(const VRDesc& _desc) BX_OVERRIDE;
|
|
|
|
|
- virtual bool submitSwapChain(const VRDesc& _desc) BX_OVERRIDE;
|
|
|
|
|
|
|
+ virtual bool createSwapChain(const VRDesc& _desc, int _msaaSamples, int _mirrorWidth, int _mirrorHeight) override;
|
|
|
|
|
+ virtual void destroySwapChain() override;
|
|
|
|
|
+ virtual void destroyMirror() override;
|
|
|
|
|
+ virtual void makeRenderTargetActive(const VRDesc& _desc) override;
|
|
|
|
|
+ virtual bool submitSwapChain(const VRDesc& _desc) override;
|
|
|
|
|
|
|
|
private:
|
|
private:
|
|
|
ID3D11DepthStencilView* m_depthBuffer;
|
|
ID3D11DepthStencilView* m_depthBuffer;
|
|
@@ -1805,117 +1805,117 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
#endif // USE_D3D11_DYNAMIC_LIB
|
|
#endif // USE_D3D11_DYNAMIC_LIB
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- RendererType::Enum getRendererType() const BX_OVERRIDE
|
|
|
|
|
|
|
+ RendererType::Enum getRendererType() const override
|
|
|
{
|
|
{
|
|
|
return RendererType::Direct3D11;
|
|
return RendererType::Direct3D11;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const char* getRendererName() const BX_OVERRIDE
|
|
|
|
|
|
|
+ const char* getRendererName() const override
|
|
|
{
|
|
{
|
|
|
return BGFX_RENDERER_DIRECT3D11_NAME;
|
|
return BGFX_RENDERER_DIRECT3D11_NAME;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createIndexBuffer(IndexBufferHandle _handle, Memory* _mem, uint16_t _flags) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createIndexBuffer(IndexBufferHandle _handle, Memory* _mem, uint16_t _flags) override
|
|
|
{
|
|
{
|
|
|
m_indexBuffers[_handle.idx].create(_mem->size, _mem->data, _flags);
|
|
m_indexBuffers[_handle.idx].create(_mem->size, _mem->data, _flags);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyIndexBuffer(IndexBufferHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyIndexBuffer(IndexBufferHandle _handle) override
|
|
|
{
|
|
{
|
|
|
m_indexBuffers[_handle.idx].destroy();
|
|
m_indexBuffers[_handle.idx].destroy();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createVertexDecl(VertexDeclHandle _handle, const VertexDecl& _decl) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createVertexDecl(VertexDeclHandle _handle, const VertexDecl& _decl) override
|
|
|
{
|
|
{
|
|
|
VertexDecl& decl = m_vertexDecls[_handle.idx];
|
|
VertexDecl& decl = m_vertexDecls[_handle.idx];
|
|
|
bx::memCopy(&decl, &_decl, sizeof(VertexDecl) );
|
|
bx::memCopy(&decl, &_decl, sizeof(VertexDecl) );
|
|
|
dump(decl);
|
|
dump(decl);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyVertexDecl(VertexDeclHandle /*_handle*/) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyVertexDecl(VertexDeclHandle /*_handle*/) override
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createVertexBuffer(VertexBufferHandle _handle, Memory* _mem, VertexDeclHandle _declHandle, uint16_t _flags) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createVertexBuffer(VertexBufferHandle _handle, Memory* _mem, VertexDeclHandle _declHandle, uint16_t _flags) override
|
|
|
{
|
|
{
|
|
|
m_vertexBuffers[_handle.idx].create(_mem->size, _mem->data, _declHandle, _flags);
|
|
m_vertexBuffers[_handle.idx].create(_mem->size, _mem->data, _declHandle, _flags);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyVertexBuffer(VertexBufferHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyVertexBuffer(VertexBufferHandle _handle) override
|
|
|
{
|
|
{
|
|
|
m_vertexBuffers[_handle.idx].destroy();
|
|
m_vertexBuffers[_handle.idx].destroy();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createDynamicIndexBuffer(IndexBufferHandle _handle, uint32_t _size, uint16_t _flags) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createDynamicIndexBuffer(IndexBufferHandle _handle, uint32_t _size, uint16_t _flags) override
|
|
|
{
|
|
{
|
|
|
m_indexBuffers[_handle.idx].create(_size, NULL, _flags);
|
|
m_indexBuffers[_handle.idx].create(_size, NULL, _flags);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void updateDynamicIndexBuffer(IndexBufferHandle _handle, uint32_t _offset, uint32_t _size, Memory* _mem) BX_OVERRIDE
|
|
|
|
|
|
|
+ void updateDynamicIndexBuffer(IndexBufferHandle _handle, uint32_t _offset, uint32_t _size, Memory* _mem) override
|
|
|
{
|
|
{
|
|
|
m_indexBuffers[_handle.idx].update(_offset, bx::uint32_min(_size, _mem->size), _mem->data);
|
|
m_indexBuffers[_handle.idx].update(_offset, bx::uint32_min(_size, _mem->size), _mem->data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyDynamicIndexBuffer(IndexBufferHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyDynamicIndexBuffer(IndexBufferHandle _handle) override
|
|
|
{
|
|
{
|
|
|
m_indexBuffers[_handle.idx].destroy();
|
|
m_indexBuffers[_handle.idx].destroy();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createDynamicVertexBuffer(VertexBufferHandle _handle, uint32_t _size, uint16_t _flags) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createDynamicVertexBuffer(VertexBufferHandle _handle, uint32_t _size, uint16_t _flags) override
|
|
|
{
|
|
{
|
|
|
VertexDeclHandle decl = BGFX_INVALID_HANDLE;
|
|
VertexDeclHandle decl = BGFX_INVALID_HANDLE;
|
|
|
m_vertexBuffers[_handle.idx].create(_size, NULL, decl, _flags);
|
|
m_vertexBuffers[_handle.idx].create(_size, NULL, decl, _flags);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void updateDynamicVertexBuffer(VertexBufferHandle _handle, uint32_t _offset, uint32_t _size, Memory* _mem) BX_OVERRIDE
|
|
|
|
|
|
|
+ void updateDynamicVertexBuffer(VertexBufferHandle _handle, uint32_t _offset, uint32_t _size, Memory* _mem) override
|
|
|
{
|
|
{
|
|
|
m_vertexBuffers[_handle.idx].update(_offset, bx::uint32_min(_size, _mem->size), _mem->data);
|
|
m_vertexBuffers[_handle.idx].update(_offset, bx::uint32_min(_size, _mem->size), _mem->data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyDynamicVertexBuffer(VertexBufferHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyDynamicVertexBuffer(VertexBufferHandle _handle) override
|
|
|
{
|
|
{
|
|
|
m_vertexBuffers[_handle.idx].destroy();
|
|
m_vertexBuffers[_handle.idx].destroy();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createShader(ShaderHandle _handle, Memory* _mem) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createShader(ShaderHandle _handle, Memory* _mem) override
|
|
|
{
|
|
{
|
|
|
m_shaders[_handle.idx].create(_mem);
|
|
m_shaders[_handle.idx].create(_mem);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyShader(ShaderHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyShader(ShaderHandle _handle) override
|
|
|
{
|
|
{
|
|
|
m_shaders[_handle.idx].destroy();
|
|
m_shaders[_handle.idx].destroy();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createProgram(ProgramHandle _handle, ShaderHandle _vsh, ShaderHandle _fsh) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createProgram(ProgramHandle _handle, ShaderHandle _vsh, ShaderHandle _fsh) override
|
|
|
{
|
|
{
|
|
|
m_program[_handle.idx].create(&m_shaders[_vsh.idx], isValid(_fsh) ? &m_shaders[_fsh.idx] : NULL);
|
|
m_program[_handle.idx].create(&m_shaders[_vsh.idx], isValid(_fsh) ? &m_shaders[_fsh.idx] : NULL);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyProgram(ProgramHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyProgram(ProgramHandle _handle) override
|
|
|
{
|
|
{
|
|
|
m_program[_handle.idx].destroy();
|
|
m_program[_handle.idx].destroy();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createTexture(TextureHandle _handle, Memory* _mem, uint32_t _flags, uint8_t _skip) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createTexture(TextureHandle _handle, Memory* _mem, uint32_t _flags, uint8_t _skip) override
|
|
|
{
|
|
{
|
|
|
m_textures[_handle.idx].create(_mem, _flags, _skip);
|
|
m_textures[_handle.idx].create(_mem, _flags, _skip);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void updateTextureBegin(TextureHandle /*_handle*/, uint8_t /*_side*/, uint8_t /*_mip*/) BX_OVERRIDE
|
|
|
|
|
|
|
+ void updateTextureBegin(TextureHandle /*_handle*/, uint8_t /*_side*/, uint8_t /*_mip*/) override
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void updateTexture(TextureHandle _handle, uint8_t _side, uint8_t _mip, const Rect& _rect, uint16_t _z, uint16_t _depth, uint16_t _pitch, const Memory* _mem) BX_OVERRIDE
|
|
|
|
|
|
|
+ void updateTexture(TextureHandle _handle, uint8_t _side, uint8_t _mip, const Rect& _rect, uint16_t _z, uint16_t _depth, uint16_t _pitch, const Memory* _mem) override
|
|
|
{
|
|
{
|
|
|
m_textures[_handle.idx].update(_side, _mip, _rect, _z, _depth, _pitch, _mem);
|
|
m_textures[_handle.idx].update(_side, _mip, _rect, _z, _depth, _pitch, _mem);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void updateTextureEnd() BX_OVERRIDE
|
|
|
|
|
|
|
+ void updateTextureEnd() override
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void readTexture(TextureHandle _handle, void* _data, uint8_t _mip) BX_OVERRIDE
|
|
|
|
|
|
|
+ void readTexture(TextureHandle _handle, void* _data, uint8_t _mip) override
|
|
|
{
|
|
{
|
|
|
const TextureD3D11& texture = m_textures[_handle.idx];
|
|
const TextureD3D11& texture = m_textures[_handle.idx];
|
|
|
D3D11_MAPPED_SUBRESOURCE mapped;
|
|
D3D11_MAPPED_SUBRESOURCE mapped;
|
|
@@ -1943,7 +1943,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
m_deviceCtx->Unmap(texture.m_ptr, _mip);
|
|
m_deviceCtx->Unmap(texture.m_ptr, _mip);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void resizeTexture(TextureHandle _handle, uint16_t _width, uint16_t _height, uint8_t _numMips) BX_OVERRIDE
|
|
|
|
|
|
|
+ void resizeTexture(TextureHandle _handle, uint16_t _width, uint16_t _height, uint8_t _numMips) override
|
|
|
{
|
|
{
|
|
|
TextureD3D11& texture = m_textures[_handle.idx];
|
|
TextureD3D11& texture = m_textures[_handle.idx];
|
|
|
|
|
|
|
@@ -1971,7 +1971,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
release(mem);
|
|
release(mem);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void overrideInternal(TextureHandle _handle, uintptr_t _ptr) BX_OVERRIDE
|
|
|
|
|
|
|
+ void overrideInternal(TextureHandle _handle, uintptr_t _ptr) override
|
|
|
{
|
|
{
|
|
|
// Resource ref. counts might be messed up outside of bgfx.
|
|
// Resource ref. counts might be messed up outside of bgfx.
|
|
|
// Disabling ref. count check once texture is overridden.
|
|
// Disabling ref. count check once texture is overridden.
|
|
@@ -1979,7 +1979,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
m_textures[_handle.idx].overrideInternal(_ptr);
|
|
m_textures[_handle.idx].overrideInternal(_ptr);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- uintptr_t getInternal(TextureHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ uintptr_t getInternal(TextureHandle _handle) override
|
|
|
{
|
|
{
|
|
|
// Resource ref. counts might be messed up outside of bgfx.
|
|
// Resource ref. counts might be messed up outside of bgfx.
|
|
|
// Disabling ref. count check once texture is overridden.
|
|
// Disabling ref. count check once texture is overridden.
|
|
@@ -1987,24 +1987,24 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
return uintptr_t(m_textures[_handle.idx].m_ptr);
|
|
return uintptr_t(m_textures[_handle.idx].m_ptr);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyTexture(TextureHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyTexture(TextureHandle _handle) override
|
|
|
{
|
|
{
|
|
|
m_textures[_handle.idx].destroy();
|
|
m_textures[_handle.idx].destroy();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createFrameBuffer(FrameBufferHandle _handle, uint8_t _num, const Attachment* _attachment) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createFrameBuffer(FrameBufferHandle _handle, uint8_t _num, const Attachment* _attachment) override
|
|
|
{
|
|
{
|
|
|
m_frameBuffers[_handle.idx].create(_num, _attachment);
|
|
m_frameBuffers[_handle.idx].create(_num, _attachment);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createFrameBuffer(FrameBufferHandle _handle, void* _nwh, uint32_t _width, uint32_t _height, TextureFormat::Enum _depthFormat) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createFrameBuffer(FrameBufferHandle _handle, void* _nwh, uint32_t _width, uint32_t _height, TextureFormat::Enum _depthFormat) override
|
|
|
{
|
|
{
|
|
|
uint16_t denseIdx = m_numWindows++;
|
|
uint16_t denseIdx = m_numWindows++;
|
|
|
m_windows[denseIdx] = _handle;
|
|
m_windows[denseIdx] = _handle;
|
|
|
m_frameBuffers[_handle.idx].create(denseIdx, _nwh, _width, _height, _depthFormat);
|
|
m_frameBuffers[_handle.idx].create(denseIdx, _nwh, _width, _height, _depthFormat);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyFrameBuffer(FrameBufferHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyFrameBuffer(FrameBufferHandle _handle) override
|
|
|
{
|
|
{
|
|
|
uint16_t denseIdx = m_frameBuffers[_handle.idx].destroy();
|
|
uint16_t denseIdx = m_frameBuffers[_handle.idx].destroy();
|
|
|
if (UINT16_MAX != denseIdx)
|
|
if (UINT16_MAX != denseIdx)
|
|
@@ -2019,7 +2019,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void createUniform(UniformHandle _handle, UniformType::Enum _type, uint16_t _num, const char* _name) BX_OVERRIDE
|
|
|
|
|
|
|
+ void createUniform(UniformHandle _handle, UniformType::Enum _type, uint16_t _num, const char* _name) override
|
|
|
{
|
|
{
|
|
|
if (NULL != m_uniforms[_handle.idx])
|
|
if (NULL != m_uniforms[_handle.idx])
|
|
|
{
|
|
{
|
|
@@ -2033,14 +2033,14 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
m_uniformReg.add(_handle, _name, data);
|
|
m_uniformReg.add(_handle, _name, data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void destroyUniform(UniformHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void destroyUniform(UniformHandle _handle) override
|
|
|
{
|
|
{
|
|
|
BX_FREE(g_allocator, m_uniforms[_handle.idx]);
|
|
BX_FREE(g_allocator, m_uniforms[_handle.idx]);
|
|
|
m_uniforms[_handle.idx] = NULL;
|
|
m_uniforms[_handle.idx] = NULL;
|
|
|
m_uniformReg.remove(_handle);
|
|
m_uniformReg.remove(_handle);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void requestScreenShot(FrameBufferHandle _handle, const char* _filePath) BX_OVERRIDE
|
|
|
|
|
|
|
+ void requestScreenShot(FrameBufferHandle _handle, const char* _filePath) override
|
|
|
{
|
|
{
|
|
|
IDXGISwapChain* swapChain = isValid(_handle)
|
|
IDXGISwapChain* swapChain = isValid(_handle)
|
|
|
? m_frameBuffers[_handle.idx].m_swapChain
|
|
? m_frameBuffers[_handle.idx].m_swapChain
|
|
@@ -2114,7 +2114,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
DX_RELEASE(backBuffer, 0);
|
|
DX_RELEASE(backBuffer, 0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void updateViewName(uint8_t _id, const char* _name) BX_OVERRIDE
|
|
|
|
|
|
|
+ void updateViewName(uint8_t _id, const char* _name) override
|
|
|
{
|
|
{
|
|
|
if (BX_ENABLED(BGFX_CONFIG_DEBUG_PIX) )
|
|
if (BX_ENABLED(BGFX_CONFIG_DEBUG_PIX) )
|
|
|
{
|
|
{
|
|
@@ -2130,12 +2130,12 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void updateUniform(uint16_t _loc, const void* _data, uint32_t _size) BX_OVERRIDE
|
|
|
|
|
|
|
+ void updateUniform(uint16_t _loc, const void* _data, uint32_t _size) override
|
|
|
{
|
|
{
|
|
|
bx::memCopy(m_uniforms[_loc], _data, _size);
|
|
bx::memCopy(m_uniforms[_loc], _data, _size);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void setMarker(const char* _marker, uint32_t _size) BX_OVERRIDE
|
|
|
|
|
|
|
+ void setMarker(const char* _marker, uint32_t _size) override
|
|
|
{
|
|
{
|
|
|
if (BX_ENABLED(BGFX_CONFIG_DEBUG_PIX) )
|
|
if (BX_ENABLED(BGFX_CONFIG_DEBUG_PIX) )
|
|
|
{
|
|
{
|
|
@@ -2146,16 +2146,16 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void invalidateOcclusionQuery(OcclusionQueryHandle _handle) BX_OVERRIDE
|
|
|
|
|
|
|
+ void invalidateOcclusionQuery(OcclusionQueryHandle _handle) override
|
|
|
{
|
|
{
|
|
|
m_occlusionQuery.invalidate(_handle);
|
|
m_occlusionQuery.invalidate(_handle);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void submitBlit(BlitState& _bs, uint16_t _view);
|
|
void submitBlit(BlitState& _bs, uint16_t _view);
|
|
|
|
|
|
|
|
- void submit(Frame* _render, ClearQuad& _clearQuad, TextVideoMemBlitter& _textVideoMemBlitter) BX_OVERRIDE;
|
|
|
|
|
|
|
+ void submit(Frame* _render, ClearQuad& _clearQuad, TextVideoMemBlitter& _textVideoMemBlitter) override;
|
|
|
|
|
|
|
|
- void blitSetup(TextVideoMemBlitter& _blitter) BX_OVERRIDE
|
|
|
|
|
|
|
+ void blitSetup(TextVideoMemBlitter& _blitter) override
|
|
|
{
|
|
{
|
|
|
ID3D11DeviceContext* deviceCtx = m_deviceCtx;
|
|
ID3D11DeviceContext* deviceCtx = m_deviceCtx;
|
|
|
|
|
|
|
@@ -2212,7 +2212,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
commitTextureStage();
|
|
commitTextureStage();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void blitRender(TextVideoMemBlitter& _blitter, uint32_t _numIndices) BX_OVERRIDE
|
|
|
|
|
|
|
+ void blitRender(TextVideoMemBlitter& _blitter, uint32_t _numIndices) override
|
|
|
{
|
|
{
|
|
|
const uint32_t numVertices = _numIndices*4/6;
|
|
const uint32_t numVertices = _numIndices*4/6;
|
|
|
if (0 < numVertices)
|
|
if (0 < numVertices)
|
|
@@ -2330,12 +2330,12 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
capturePostReset();
|
|
capturePostReset();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- bool isDeviceRemoved() BX_OVERRIDE
|
|
|
|
|
|
|
+ bool isDeviceRemoved() override
|
|
|
{
|
|
{
|
|
|
return m_lost;
|
|
return m_lost;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void flip(HMD& _hmd) BX_OVERRIDE
|
|
|
|
|
|
|
+ void flip(HMD& _hmd) override
|
|
|
{
|
|
{
|
|
|
if (NULL != m_swapChain
|
|
if (NULL != m_swapChain
|
|
|
&& !m_lost)
|
|
&& !m_lost)
|