mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-29 12:15:30 +00:00
Added setImage with array layer range for compute images. (#3829)
This commit is contained in:
+4
-4
@@ -7912,8 +7912,8 @@ namespace bgfx { namespace gl
|
||||
GL_CHECK(glBindImageTexture(ii
|
||||
, texture.m_id
|
||||
, bind.m_firstMip
|
||||
, texture.isCubeMap() || texture.m_target == GL_TEXTURE_2D_ARRAY ? GL_TRUE : GL_FALSE
|
||||
, 0
|
||||
, texture.isCubeMap() || texture.m_target == GL_TEXTURE_2D_ARRAY || UINT16_MAX != bind.m_numLayers ? GL_TRUE : GL_FALSE
|
||||
, bind.m_firstLayer
|
||||
, s_access[bind.m_access]
|
||||
, s_imageFormat[bind.m_format])
|
||||
);
|
||||
@@ -8426,8 +8426,8 @@ namespace bgfx { namespace gl
|
||||
GL_CHECK(glBindImageTexture(stage
|
||||
, texture.m_id
|
||||
, bind.m_firstMip
|
||||
, texture.isCubeMap() || texture.m_target == GL_TEXTURE_2D_ARRAY ? GL_TRUE : GL_FALSE
|
||||
, 0
|
||||
, texture.isCubeMap() || texture.m_target == GL_TEXTURE_2D_ARRAY || UINT16_MAX != bind.m_numLayers ? GL_TRUE : GL_FALSE
|
||||
, bind.m_firstLayer
|
||||
, s_access[bind.m_access]
|
||||
, s_imageFormat[bind.m_format])
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user