Merge pull request #953 from benoitjacquier/cubemap_as_texturearray

Cubemap as texturearray
This commit is contained in:
Branimir Karadžić
2016-10-21 09:10:34 -07:00
committed by GitHub
8 changed files with 141 additions and 27 deletions

View File

@@ -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])