mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Fix regression (incorrectly removed specialization)
Changed CRLF->LF in VKPipelineCompiler.h
This commit is contained in:
parent
0bcece4585
commit
3bcd76bd4e
@ -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…
Reference in New Issue
Block a user