mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Fix regression (incorrectly removed specialization)
Changed CRLF->LF in VKPipelineCompiler.h
This commit is contained in:
parent
0bcece4585
commit
3bcd76bd4e
1 changed files with 186 additions and 164 deletions
|
@ -162,3 +162,25 @@ namespace vk
|
|||
void destroy_pipe_compiler();
|
||||
pipe_compiler* get_pipe_compiler();
|
||||
}
|
||||
|
||||
namespace rpcs3
|
||||
{
|
||||
template <>
|
||||
inline usz hash_struct<vk::pipeline_props>(const vk::pipeline_props& pipelineProperties)
|
||||
{
|
||||
usz seed = hash_base(pipelineProperties.renderpass_key);
|
||||
seed ^= hash_struct(pipelineProperties.state.ia);
|
||||
seed ^= hash_struct(pipelineProperties.state.ds);
|
||||
seed ^= hash_struct(pipelineProperties.state.rs);
|
||||
seed ^= hash_struct(pipelineProperties.state.ms);
|
||||
seed ^= hash_base(pipelineProperties.state.temp_storage.msaa_sample_mask);
|
||||
|
||||
// Do not compare pointers to memory!
|
||||
VkPipelineColorBlendStateCreateInfo tmp;
|
||||
memcpy(&tmp, &pipelineProperties.state.cs, sizeof(VkPipelineColorBlendStateCreateInfo));
|
||||
tmp.pAttachments = nullptr;
|
||||
|
||||
seed ^= hash_struct(pipelineProperties.state.att_state[0]);
|
||||
return hash_base(seed);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue