This commit is contained in:
Branimir Karadžić 2018-09-14 21:27:18 -07:00
parent 00b6beab16
commit 119c2bfaf6
2 changed files with 15 additions and 1 deletions

View File

@ -1303,6 +1303,13 @@ namespace bgfx
, uint32_t _num
);
/// Set number of instances for auto generated instances use in conjuction
/// with gl_InstanceID.
///
/// @param[in] _numInstances Number of instances.
///
/// @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`.
/// @attention C99 equivalent is `bgfx_set_instance_count`.
///
void setInstanceCount(uint32_t _numInstances);
@ -3636,6 +3643,13 @@ namespace bgfx
, uint32_t _num
);
/// Set number of instances for auto generated instances use in conjuction
/// with gl_InstanceID.
///
/// @param[in] _numInstances Number of instances.
///
/// @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`.
/// @attention C99 equivalent is `bgfx_set_instance_count`.
///
void setInstanceCount(uint32_t _numInstances);

View File

@ -6,7 +6,7 @@
#ifndef BGFX_DEFINES_H_HEADER_GUARD
#define BGFX_DEFINES_H_HEADER_GUARD
#define BGFX_API_VERSION UINT32_C(82)
#define BGFX_API_VERSION UINT32_C(81)
/// 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.