|
|
@@ -3454,6 +3454,7 @@ error:
|
|
|
FrameBufferHandle createFrameBuffer(void* _nwh, uint16_t _width, uint16_t _height, TextureFormat::Enum _depthFormat)
|
|
|
{
|
|
|
BGFX_CHECK_MAIN_THREAD();
|
|
|
+ BGFX_CHECK_CAPS(BGFX_CAPS_SWAP_CHAIN, "Swap chain is not supported!");
|
|
|
BX_WARN(_width > 0 && _height > 0
|
|
|
, "Invalid frame buffer dimensions (width %d, height %d)."
|
|
|
, _width
|
|
|
@@ -3821,7 +3822,7 @@ error:
|
|
|
uint32_t submit(uint8_t _id, ProgramHandle _program, IndirectBufferHandle _indirectHandle, uint16_t _start, uint16_t _num, int32_t _depth, bool _preserveState)
|
|
|
{
|
|
|
BGFX_CHECK_MAIN_THREAD();
|
|
|
- BGFX_CHECK_CAPS(BGFX_CAPS_DRAW_INDIRECT, "Draw indirect is not supported! Use bgfx::getCaps to check BGFX_CAPS_DRAW_INDIRECT backend renderer capabilities.");
|
|
|
+ BGFX_CHECK_CAPS(BGFX_CAPS_DRAW_INDIRECT, "Draw indirect is not supported!");
|
|
|
return s_ctx->submit(_id, _program, _indirectHandle, _start, _num, _depth, _preserveState);
|
|
|
}
|
|
|
|
|
|
@@ -3870,15 +3871,15 @@ error:
|
|
|
uint32_t dispatch(uint8_t _id, ProgramHandle _handle, uint16_t _numX, uint16_t _numY, uint16_t _numZ, uint8_t _flags)
|
|
|
{
|
|
|
BGFX_CHECK_MAIN_THREAD();
|
|
|
- BGFX_CHECK_CAPS(BGFX_CAPS_COMPUTE, "Compute is not supported! Use bgfx::getCaps to check BGFX_CAPS_COMPUTE backend renderer capabilities.");
|
|
|
+ BGFX_CHECK_CAPS(BGFX_CAPS_COMPUTE, "Compute is not supported!");
|
|
|
return s_ctx->dispatch(_id, _handle, _numX, _numY, _numZ, _flags);
|
|
|
}
|
|
|
|
|
|
uint32_t dispatch(uint8_t _id, ProgramHandle _handle, IndirectBufferHandle _indirectHandle, uint16_t _start, uint16_t _num, uint8_t _flags)
|
|
|
{
|
|
|
BGFX_CHECK_MAIN_THREAD();
|
|
|
- BGFX_CHECK_CAPS(BGFX_CAPS_DRAW_INDIRECT, "Dispatch indirect is not supported! Use bgfx::getCaps to check BGFX_CAPS_DRAW_INDIRECT backend renderer capabilities.");
|
|
|
- BGFX_CHECK_CAPS(BGFX_CAPS_COMPUTE, "Compute is not supported! Use bgfx::getCaps to check BGFX_CAPS_COMPUTE backend renderer capabilities.");
|
|
|
+ BGFX_CHECK_CAPS(BGFX_CAPS_DRAW_INDIRECT, "Dispatch indirect is not supported!");
|
|
|
+ BGFX_CHECK_CAPS(BGFX_CAPS_COMPUTE, "Compute is not supported!");
|
|
|
return s_ctx->dispatch(_id, _handle, _indirectHandle, _start, _num, _flags);
|
|
|
}
|
|
|
|