mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
Merge pull request #953 from benoitjacquier/cubemap_as_texturearray
Cubemap as texturearray
This commit is contained in:
@@ -3763,6 +3763,7 @@ namespace bgfx { namespace gl
|
||||
GLSL_TYPE(GL_UNSIGNED_INT_IMAGE_1D);
|
||||
|
||||
GLSL_TYPE(GL_IMAGE_2D);
|
||||
GLSL_TYPE(GL_IMAGE_2D_ARRAY);
|
||||
GLSL_TYPE(GL_INT_IMAGE_2D);
|
||||
GLSL_TYPE(GL_UNSIGNED_INT_IMAGE_2D);
|
||||
|
||||
@@ -3860,6 +3861,7 @@ namespace bgfx { namespace gl
|
||||
case GL_UNSIGNED_INT_IMAGE_1D:
|
||||
|
||||
case GL_IMAGE_2D:
|
||||
case GL_IMAGE_2D_ARRAY:
|
||||
case GL_INT_IMAGE_2D:
|
||||
case GL_UNSIGNED_INT_IMAGE_2D:
|
||||
|
||||
@@ -6389,7 +6391,7 @@ namespace bgfx { namespace gl
|
||||
GL_CHECK(glBindImageTexture(ii
|
||||
, texture.m_id
|
||||
, bind.m_un.m_compute.m_mip
|
||||
, GL_FALSE
|
||||
, texture.isCubeMap()?GL_TRUE:GL_FALSE
|
||||
, 0
|
||||
, s_access[bind.m_un.m_compute.m_access]
|
||||
, s_imageFormat[bind.m_un.m_compute.m_format])
|
||||
|
||||
Reference in New Issue
Block a user