Add option to force begin() encoder for a thread (#1497)

This commit is contained in:
Hugo Amnov
2018-09-22 18:52:51 +02:00
committed by Branimir Karadžić
parent 78da1163c2
commit fa2dfdf6c7
4 changed files with 9 additions and 7 deletions

View File

@@ -1907,7 +1907,9 @@ namespace bgfx
/// Begin submitting draw calls from thread.
///
Encoder* begin();
/// @param[in] _forThread Explicitly request an encoder for a worker thread.
///
Encoder* begin(bool _forThread = false);
/// End submitting draw calls from thread.
///

View File

@@ -6,7 +6,7 @@
#ifndef BGFX_DEFINES_H_HEADER_GUARD
#define BGFX_DEFINES_H_HEADER_GUARD
#define BGFX_API_VERSION UINT32_C(83)
#define BGFX_API_VERSION UINT32_C(84)
/// Color RGB/alpha/depth write. When it's not specified write will be disabled.
#define BGFX_STATE_WRITE_R UINT64_C(0x0000000000000001) //!< Enable R write.