Explorar o código

Added number of views to caps.

Branimir Karadžić %!s(int64=11) %!d(string=hai) anos
pai
achega
579f43fad7
Modificáronse 3 ficheiros con 3 adicións e 0 borrados
  1. 1 0
      include/bgfx.c99.h
  2. 1 0
      include/bgfx.h
  3. 1 0
      src/bgfx.cpp

+ 1 - 0
include/bgfx.c99.h

@@ -287,6 +287,7 @@ typedef struct bgfx_caps
     uint64_t supported;
     uint64_t supported;
 
 
     uint16_t maxTextureSize;    /* < Maximum texture size.             */
     uint16_t maxTextureSize;    /* < Maximum texture size.             */
+    uint16_t maxViews;          /* < Maximum views.                    */
     uint16_t maxDrawCalls;      /* < Maximum draw calls.               */
     uint16_t maxDrawCalls;      /* < Maximum draw calls.               */
     uint8_t  maxFBAttachments;  /* < Maximum frame buffer attachments. */
     uint8_t  maxFBAttachments;  /* < Maximum frame buffer attachments. */
 
 

+ 1 - 0
include/bgfx.h

@@ -310,6 +310,7 @@ namespace bgfx
 		uint64_t supported;
 		uint64_t supported;
 
 
 		uint16_t maxTextureSize;   ///< Maximum texture size.
 		uint16_t maxTextureSize;   ///< Maximum texture size.
+		uint16_t maxViews;         ///< Maximum views.
 		uint16_t maxDrawCalls;     ///< Maximum draw calls.
 		uint16_t maxDrawCalls;     ///< Maximum draw calls.
 		uint8_t  maxFBAttachments; ///< Maximum frame buffer attachments.
 		uint8_t  maxFBAttachments; ///< Maximum frame buffer attachments.
 
 

+ 1 - 0
src/bgfx.cpp

@@ -1980,6 +1980,7 @@ again:
 		g_caps.supported = 0
 		g_caps.supported = 0
 			| (BGFX_CONFIG_MULTITHREADED ? BGFX_CAPS_RENDERER_MULTITHREADED : 0)
 			| (BGFX_CONFIG_MULTITHREADED ? BGFX_CAPS_RENDERER_MULTITHREADED : 0)
 			;
 			;
+		g_caps.maxViews     = BGFX_CONFIG_MAX_VIEWS;
 		g_caps.maxDrawCalls = BGFX_CONFIG_MAX_DRAW_CALLS;
 		g_caps.maxDrawCalls = BGFX_CONFIG_MAX_DRAW_CALLS;
 		g_caps.maxFBAttachments = 1;
 		g_caps.maxFBAttachments = 1;