GPUPrimitiveState constructor

GPUPrimitiveState({
  1. GPUPrimitiveTopology? topology,
  2. GPUIndexFormat? stripIndexFormat,
  3. GPUFrontFace? frontFace,
  4. GPUCullMode? cullMode,
  5. 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);