mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 06:13:07 +01:00
Added transient buffer stats.
This commit is contained in:
@@ -600,7 +600,9 @@ namespace bgfx
|
||||
|
||||
struct Limits
|
||||
{
|
||||
uint16_t maxEncoders; //!< Maximum number of encoder threads.
|
||||
uint16_t maxEncoders; //!< Maximum number of encoder threads.
|
||||
uint32_t transientVbSize; //!<
|
||||
uint32_t transientIbSize; //!<
|
||||
};
|
||||
|
||||
Limits limits;
|
||||
@@ -689,6 +691,8 @@ namespace bgfx
|
||||
uint32_t maxUniforms; //!< Maximum number of uniform handles.
|
||||
uint32_t maxOcclusionQueries; //!< Maximum number of occlusion query handles.
|
||||
uint32_t maxEncoders; //!< Maximum number of encoder threads.
|
||||
uint32_t transientVbSize; //!<
|
||||
uint32_t transientIbSize; //!<
|
||||
};
|
||||
|
||||
Limits limits;
|
||||
@@ -898,6 +902,8 @@ namespace bgfx
|
||||
|
||||
int64_t textureMemoryUsed; //!<
|
||||
int64_t rtMemoryUsed; //!<
|
||||
int32_t transientVbUsed; //!<
|
||||
int32_t transientIbUsed; //!<
|
||||
|
||||
int64_t gpuMemoryMax; //!< Maximum available GPU memory for application.
|
||||
int64_t gpuMemoryUsed; //!< Amount of GPU memory used by the application.
|
||||
|
||||
@@ -388,6 +388,8 @@ typedef struct bgfx_stats_s
|
||||
|
||||
int64_t textureMemoryUsed;
|
||||
int64_t rtMemoryUsed;
|
||||
int32_t transientVbUsed;
|
||||
int32_t transientIbUsed;
|
||||
|
||||
int64_t gpuMemoryMax;
|
||||
int64_t gpuMemoryUsed;
|
||||
@@ -512,6 +514,8 @@ typedef struct bgfx_caps_limits_s
|
||||
uint32_t maxUniforms;
|
||||
uint32_t maxOcclusionQueries;
|
||||
uint32_t maxEncoders;
|
||||
uint32_t transientVbSize;
|
||||
uint32_t transientIbSize;
|
||||
|
||||
} bgfx_caps_limits_t;
|
||||
|
||||
@@ -600,6 +604,8 @@ typedef struct bgfx_resolution_s
|
||||
typedef struct bgfx_init_limits_s
|
||||
{
|
||||
uint16_t maxEncoders;
|
||||
uint32_t transientVbSize;
|
||||
uint32_t transientIbSize;
|
||||
|
||||
} bgfx_init_limits_t;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#ifndef BGFX_DEFINES_H_HEADER_GUARD
|
||||
#define BGFX_DEFINES_H_HEADER_GUARD
|
||||
|
||||
#define BGFX_API_VERSION UINT32_C(66)
|
||||
#define BGFX_API_VERSION UINT32_C(67)
|
||||
|
||||
/// 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