-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
544a0e2
commit 3ff78af
Showing
10 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
app/src/main/cpp/skyline/gpu/vk_descriptor_set_layout_hash.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef VK_DESCRIPTOR_SET_LAYOUT_HASH_HPP | ||
#define VK_DESCRIPTOR_SET_LAYOUT_HASH_HPP | ||
|
||
#include <vulkan/vulkan.hpp> | ||
#include <unordered_map> | ||
|
||
// Specialization of std::hash for vk::DescriptorSetLayout | ||
namespace std { | ||
template <> | ||
struct hash<vk::DescriptorSetLayout> { | ||
std::size_t operator()(const vk::DescriptorSetLayout &layout) const noexcept { | ||
// Use the raw Vulkan handle for hashing | ||
return std::hash<VkDescriptorSetLayout>()(static_cast<VkDescriptorSetLayout>(layout)); | ||
} | ||
}; | ||
} | ||
|
||
#endif // VK_DESCRIPTOR_SET_LAYOUT_HASH_HPP |