UComputeKernelSource

Class representing the source for a [UComputeKernel](API\Plugins\ComputeFramework\ComputeFramework\UComputeKernel) We derive from this for each authoring mechanism.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

ComputeFramework

Header

/Engine/Plugins/Experimental/ComputeFramework/Source/ComputeFramework/Public/ComputeFramework/ComputeKernelSource.h

Include

#include "ComputeFramework/ComputeKernelSource.h"

Syntax

UCLASS(Abstract, EditInlineNew)
class UComputeKernelSource : public UObject

Remarks

Class representing the source for a UComputeKernel We derive from this for each authoring mechanism. (HLSL text, VPL graph, ML Meta Lang, etc.)

Variables

Name Description

Public variable UProperty Category, Meta visibleanywhere

FComputeKernelD...

 

DefinitionsSet

Base environment defines for kernel compilation.

Public variable UProperty Category editfixedsize, visibleanywhere

TArray< FShader...

 

ExternalInputs

Named external inputs for the kernel. These must be fulfilled by linked data providers.

Public variable UProperty Category editfixedsize, visibleanywhere

TArray< FShader...

 

ExternalOutputs

Named external outputs for the kernel. These must be fulfilled by linked data providers.

Public variable UProperty Category editfixedsize, visibleanywhere

TArray< FShader...

 

InputParams

Named input parameters for the kernel.

Public variable UProperty Category, Meta visibleanywhere

FComputeKernelP...

 

PermutationSet

Base permutations exposed by the kernel.

Functions

Name Description

Public function Virtual Const

FString

 

GetEntryPoint()

Get kernel entry point name.

Public function Const

void

 

GetShaderParameters

Register the input parameters with a shader metadata builder.

Public function Virtual Const

FString

 

GetSource()

Get kernel source code.

Public function Virtual Const

uint64

 

GetSourceCodeHash()

Get a hash of the kernel source code.