GPUPrimitiveState constructor
GPUPrimitiveState({
- GPUPrimitiveTopology? topology,
- GPUIndexFormat? stripIndexFormat,
- GPUFrontFace? frontFace,
- GPUCullMode? cullMode,
- bool? unclippedDepth,
Implementation
factory GPUPrimitiveState(
{GPUPrimitiveTopology? topology,
GPUIndexFormat? stripIndexFormat,
GPUFrontFace? frontFace,
GPUCullMode? cullMode,
bool? unclippedDepth}) =>
GPUPrimitiveState._(
topology: topology?.value ?? GPUPrimitiveTopology.triangleList.value,
stripIndexFormat: stripIndexFormat?.value ?? undefined,
frontFace: frontFace?.value ?? GPUFrontFace.ccw.value,
cullMode: cullMode?.value ?? GPUCullMode.none.value,
unclippedDepth: unclippedDepth ?? false);