UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MetalComputeShader.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 MetalComputeShader.h: Metal RHI Compute Shader Class Definition.
5=============================================================================*/
6
7#pragma once
8
9#include "MetalRHIPrivate.h"
11
12
13//------------------------------------------------------------------------------
14
15#pragma mark - Metal RHI Compute Shader Class
16
17class FMetalDevice;
18class FMetalComputeShader : public TMetalBaseShader<FRHIComputeShader, SF_Compute>
19{
20public:
22 virtual ~FMetalComputeShader();
23
26
27 // thread group counts
31
32#if METAL_RHI_RAYTRACING
35#endif // METAL_RHI_RAYTRACING
36
37private:
38 // the state object for a compute shader
40
41 FCriticalSection PipelineCS;
42};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::FPlatformRecursiveMutex FCriticalSection
Definition CriticalSection.h:53
Definition MetalComputeShader.h:19
MTLFunctionPtr GetFunction()
Definition MetalComputeShader.cpp:173
virtual ~FMetalComputeShader()
Definition MetalComputeShader.cpp:38
int32 NumThreadsZ
Definition MetalComputeShader.h:30
int32 NumThreadsX
Definition MetalComputeShader.h:28
FMetalShaderPipelinePtr GetPipeline()
Definition MetalComputeShader.cpp:46
int32 NumThreadsY
Definition MetalComputeShader.h:29
Definition MetalDevice.h:102
Definition ArrayView.h:139
Definition MetalBaseShader.h:93
FMetalDevice & Device
Definition MetalBaseShader.h:121
Definition MetalShaderResources.h:166