Skip to content

Commit

Permalink
[Vk] Fixed validation errors in vkDebugMarkerSetObjectNameEXT usage
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Sep 13, 2024
1 parent 4444e82 commit 9e3fc3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions RenderSystems/Vulkan/src/OgreVulkanProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ namespace Ogre
checkVkResult( result, "vkCreateShaderModule" );

setObjectName( mDevice->mDevice, (uint64_t)mShaderModule,
VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, mName.c_str() );
VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT, mName.c_str() );
}

if( !mSpirv.empty() && mType == GPT_VERTEX_PROGRAM )
Expand Down Expand Up @@ -778,7 +778,7 @@ namespace Ogre
checkVkResult( result, "vkCreateShaderModule" );

setObjectName( mDevice->mDevice, (uint64_t)mShaderModule,
VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, mName.c_str() );
VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT, mName.c_str() );
}

if( !mSpirv.empty() && mType == GPT_VERTEX_PROGRAM )
Expand Down
2 changes: 1 addition & 1 deletion RenderSystems/Vulkan/src/OgreVulkanTextureGpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ namespace Ogre

#if OGRE_DEBUG_MODE >= OGRE_DEBUG_HIGH
const String textureName = getNameStr() + "(View)";
setObjectName( device->mDevice, (uint64_t)imageView, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT,
setObjectName( device->mDevice, (uint64_t)imageView, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT,
textureName.c_str() );
#endif

Expand Down

0 comments on commit 9e3fc3c

Please sign in to comment.