Added row of cubes whose compressed texture is created with empty content then updated using bgx::updateTexture2D.
Fixed default srcPitch in d3d11 renderer for compressed textures.
Fix case of drawing different offsets of indices of same vertex buffer
using same instance data.
This can happen in the case of conditionally drawing subsets of vertex
buffer stored in different offsets of the same index buffer while re-using
non-transient instance buffers.
Fix case of drawing different indices of same vertex buffer using same
instance data.
This can happen in the case of conditionally drawing subsets of vertex
buffer stored in different index buffers while re-using non-transient
instance buffers.
Previously, the code checked for an extension by checking if the pointer returned from
glXGetProcAddress was NULL or not.
But in truth, you can get a non-NULL pointer even if that extension is not supported.
Now, we parse the glXQueryExtensionsString() results.
GLFW code that does similar checks, for reference: https://github.com/glfw/glfw/blob/51bb76c7c3de934b2dd3affcdc297a32e4817835/src/glx_context.c#L208fixes#1367
* view stats: Make GPU begin and end times available
* view stats: Make CPU start and end times available
* view stats: Remove redundant `gpuTimeElapsed`
Value can be derived by `gpuTimeEnd - gpuTimeBegin`
* view stats: Remove redundant `cpuTimeElapsed`
Value can be derived by `cpuTimeEnd - cpuTimeBegin`
* Added BGFX_STATE_FRONT_CCW to defines.h and implemented initial usage only in renderer_d3d11.cpp.
* set front facing for d3d12, gl metal and vulkan
* front facing method Metal
* tabs
* removed tab
idl updated
* fix devide by zero in texture viewer when construct orientation matrix
* fix using quad to clear framebuffer, but not set scissor rect, cause clear failed bug