GPUBlendComponent


class GPUBlendComponent


Defines the blending behavior for a single color component (color or alpha).

Summary

Nested types

Builder for GPUBlendComponent.

Public constructors

GPUBlendComponent(operation: Int, srcFactor: Int, dstFactor: Int)

Public properties

Int
Int

The blend operation to perform.

Int

Public constructors

GPUBlendComponent

Added in 1.0.0-alpha06
GPUBlendComponent(
    operation: Int = BlendOperation.Add,
    srcFactor: Int = BlendFactor.One,
    dstFactor: Int = BlendFactor.Zero
)

Public properties

dstFactor

Added in 1.0.0-alpha06
var dstFactor: Int

Value is one of the following:

  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17

operation

Added in 1.0.0-alpha06
var operation: Int

The blend operation to perform. Defaults to @see BlendOperation.Add if undefined.

Value is one of the following:

  • 0
  • 1
  • 2
  • 3
  • 4
  • 5

srcFactor

Added in 1.0.0-alpha06
var srcFactor: Int

Value is one of the following:

  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17