Skip to content

Conversation

@Gliniak
Copy link
Member

@Gliniak Gliniak commented Dec 12, 2025

No description provided.

})

defines({
"VULKAN_HPP_NO_TO_STRING",
Copy link
Member

@Triang3l Triang3l Dec 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vk::to_string is used in Xenia, primarily for VkResult reporting. Currently it's only used in the ui/vulkan part, but it will be used frequently in gpu/vulkan as well in the future. What exactly does defining this change in Xenia?

Copy link
Member

@Triang3l Triang3l Dec 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that definition doesn't prevent vk::to_string from being used completely, rather it removes std::to_string usage. Yeah, that's okay, though it needs some comment like -- Use vk::to_string rather than std::to_string. to prevent confusion. Also, gpu/vulkan and ui/vulkan would probably be the better place for this, unless it affects building of multiple third-party libraries.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be better to eliminate the actual reason of why our code doesn't work without defining this. It's likely that it's something trivial, like we need to change vk::to_string to std::to_string, or to specify what namespace Vulkan-Hpp should be using, or something like that.

}

SpirvBuilder::IfBuilder::IfBuilder(spv::Id condition, unsigned int control,
spv::Id SpirvBuilder::createAccessChain(spv::StorageClass storage_class,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's kind of scary to override a non-virtual method this way, but since we don't seem to be passing instances of this class to anything that uses spv::Builder directly that may call this probably, should be okay.

@Triang3l
Copy link
Member

This pull request seems quite complete aside from code formatting and the questionable part about VULKAN_HPP_NO_TO_STRING, what is remaining before this can become no longer a draft?

@Gliniak Gliniak marked this pull request as ready for review December 13, 2025 18:21
- Removed usage of spirv_remap from xenia-build. It was removed in 2022 in favor of spirv-opt

Co-authored-by: Herman S. <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants