mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
Add option to force begin() encoder for a thread (#1497)
This commit is contained in:
committed by
Branimir Karadžić
parent
78da1163c2
commit
fa2dfdf6c7
@@ -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.
|
||||
///
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user