Class MPSAccelerationStructureUsage
- java.lang.Object
-
- apple.metalperformanceshaders.enums.MPSAccelerationStructureUsage
-
public final class MPSAccelerationStructureUsage extends java.lang.ObjectOptions describing how an acceleration structure will be used
-
-
Field Summary
Fields Modifier and Type Field Description static longFrequentRebuildOption indicating that the acceleration structure will be rebuilt frequently.static longNoneNo usage options specifiedstatic longPreferCPUBuildPrefer building the acceleration structure on the CPU.static longPreferGPUBuildPrefer building the acceleration structure on the GPU.static longRefitEnable support for refitting the acceleration structure after it has been built.
-
-
-
Field Detail
-
None
public static final long None
No usage options specified- See Also:
- Constant Field Values
-
Refit
public static final long Refit
Enable support for refitting the acceleration structure after it has been built. This option may reduce raytracing performance so do not use it unless the acceleration structure will be refit.- See Also:
- Constant Field Values
-
FrequentRebuild
public static final long FrequentRebuild
Option indicating that the acceleration structure will be rebuilt frequently. In this case, the acceleration structure may choose a higher performance but lower quality acceleration structure construction algorithm. This option may reduce raytracing performance performance so do not use it unless reduced acceleration structure build time is worth reduced raytracing performance. This option may be useful if, for example, the user is interactively editing a live view of the scene.- See Also:
- Constant Field Values
-
PreferGPUBuild
public static final long PreferGPUBuild
Prefer building the acceleration structure on the GPU. By default, the acceleration structure will be built on the GPU when possible. However, in some cases such as very small triangle counts, the acceleration structure may be built on the CPU. This option will force the acceleration structure to be always be built on the GPU whenever possible.- See Also:
- Constant Field Values
-
PreferCPUBuild
public static final long PreferCPUBuild
Prefer building the acceleration structure on the CPU. By default, the acceleration structure will be built on the GPU when possible, which is typically much faster than building on the CPU. However, in some cases it may be preferable to build on the CPU such as to avoid framerate hitches when the GPU is rendering the user interface.- See Also:
- Constant Field Values
-
-