Added setImage with array layer range for compute images. (#3829)

This commit is contained in:
Branimir Karadžić
2026-07-13 04:19:07 +00:00
committed by GitHub
parent 39a2a05a3c
commit 6eb09a4a9b
21 changed files with 393 additions and 49 deletions
+4 -4
View File
@@ -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])
);