Navigation
API > API/Runtime > API/Runtime/Engine
Instruction that maps to hardware ddx()/ddy().
Note: This is only available in stages that support hardware derivatives (e.g. pixel shader)
| Name | FHardwarePartialDerivative |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIR.h |
| Include Path | #include "Materials/MaterialIR.h" |
Syntax
struct FHardwarePartialDerivative : public MIR::TInstruction< VK_HardwarePartialDerivative, 1 >
Inheritance Hierarchy
- FValue → FInstruction → TInstruction → FHardwarePartialDerivative
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Arg | FValue * | The value argument of ddx()/ddy() | Materials/MaterialIR.h | |
| Axis | EDerivativeAxis | The direction of partial derivative. | Materials/MaterialIR.h | |
| Source | EDerivativeSource | The source expression that generated this partial derivative (for error reporting) | Materials/MaterialIR.h |