MCPcopy Create free account
hub / github.com/cogentcore/core / TransitionDstToGeneral

Method TransitionDstToGeneral

vgpu/image.go:936–938  ·  view source on GitHub ↗

TransitionDstToGeneral transitions from Dst to General, in prep for copy from dev to host

(cmd vk.CommandBuffer)

Source from the content-addressed store, hash-verified

934
935// TransitionDstToGeneral transitions from Dst to General, in prep for copy from dev to host
936func (im *Image) TransitionDstToGeneral(cmd vk.CommandBuffer) {
937 im.Transition(cmd, im.Format.Format, vk.ImageLayoutTransferDstOptimal, vk.ImageLayoutGeneral, vk.PipelineStageTransferBit, vk.PipelineStageTransferBit)
938}
939
940// Transition transitions image to new layout
941func (im *Image) Transition(cmd vk.CommandBuffer, format vk.Format, oldLayout, NewLayout vk.ImageLayout, srcStage, dstStage vk.PipelineStageFlagBits) {

Callers 1

GrabImageMethod · 0.80

Calls 1

TransitionMethod · 0.95

Tested by

no test coverage detected