CopyPass
Functions
Link copied to clipboard
fun CopyPass.uploadToBuffer(source: TransferBuffer, destination: GpuBuffer, sizeInBytes: Int, cycle: Cycle, sourceOffset: Int = 0, destinationOffset: Int = 0)
Copies sizeInBytes bytes from source at sourceOffset into destination at destinationOffset. Pass the Int parameters by name.
Link copied to clipboard
fun CopyPass.uploadToTexture(source: TransferBuffer, destination: GpuTexture, width: Int, height: Int, sourceOffset: Int = 0, x: Int = 0, y: Int = 0)
Copies tightly packed texels for a width by height rectangle from source at sourceOffset into destination, with the rectangle's top-left corner at texel x, y of destination. With x and y at 0 and the texture's own size it fills the whole texture. The rectangle must lie inside destination; SDL does not check it. Pass the Int parameters after the first pair by name.