UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MetalCompiledShaderKey.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 MetalCompiledShaderKey.h: Metal RHI Compiled Shader Key.
5=============================================================================*/
6
7#pragma once
8
9#include "HAL/Platform.h"
10#include "Templates/TypeHash.h"
11
13{
21
23 {
24 return A.CodeSize == B.CodeSize && A.CodeCRC == B.CodeCRC && A.Constants == B.Constants;
25 }
26
28 {
29 return HashCombine(HashCombine(GetTypeHash(Key.CodeSize), GetTypeHash(Key.CodeCRC)), GetTypeHash(Key.Constants));
30 }
31
35};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
constexpr uint32 HashCombine(uint32 A, uint32 C)
Definition TypeHash.h:36
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition MetalCompiledShaderKey.h:13
uint32 CodeCRC
Definition MetalCompiledShaderKey.h:33
uint32 CodeSize
Definition MetalCompiledShaderKey.h:32
friend uint32 GetTypeHash(const FMetalCompiledShaderKey &Key)
Definition MetalCompiledShaderKey.h:27
friend bool operator==(const FMetalCompiledShaderKey &A, const FMetalCompiledShaderKey &B)
Definition MetalCompiledShaderKey.h:22
uint32 Constants
Definition MetalCompiledShaderKey.h:34
FMetalCompiledShaderKey(uint32 InCodeSize, uint32 InCodeCRC, uint32 InConstants)
Definition MetalCompiledShaderKey.h:14