GPUExternalTextureDescriptor


@ExperimentalWebGpuApi
class GPUExternalTextureDescriptor


Summary

Public constructors

GPUExternalTextureDescriptor(
    cropSize: GPUExtent2D,
    srcColorSpace: GPUColorSpaceDawn,
    dstColorSpace: Int,
    label: String?,
    plane1: GPUTextureView?,
    cropOrigin: GPUOrigin2D,
    mirrored: Boolean,
    rotation: Int
)

Public constructors

GPUExternalTextureDescriptor

Added in 1.0.0-alpha06
GPUExternalTextureDescriptor(
    cropSize: GPUExtent2D,
    srcColorSpace: GPUColorSpaceDawn,
    dstColorSpace: Int,
    label: String? = null,
    plane1: GPUTextureView? = null,
    cropOrigin: GPUOrigin2D = GPUOrigin2D(),
    mirrored: Boolean = false,
    rotation: Int = ExternalTextureRotation.Rotate0Degrees
)

Public properties

cropOrigin

Added in 1.0.0-alpha06
var cropOrigin: GPUOrigin2D

cropSize

Added in 1.0.0-alpha06
var cropSize: GPUExtent2D

dstColorSpace

Added in 1.0.0-alpha06
var dstColorSpace: Int

label

Added in 1.0.0-alpha06
var label: String?

mirrored

Added in 1.0.0-alpha06
var mirrored: Boolean

plane1

Added in 1.0.0-alpha06
var plane1: GPUTextureView?

rotation

Added in 1.0.0-alpha06
var rotation: Int

srcColorSpace

Added in 1.0.0-alpha06
var srcColorSpace: GPUColorSpaceDawn