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

Method BeginRenderPass

vgpu/system.go:438–441  ·  view source on GitHub ↗

BeginRenderPass adds commands to the given command buffer to start the render pass on given framebuffer. Clears the frame first, according to the ClearValues. Also Binds descriptor sets to command buffer for given collection of descriptors descIndex (see Vars NDescs for info).

(cmd vk.CommandBuffer, fr *Framebuffer, descIndex int)

Source from the content-addressed store, hash-verified

436// Also Binds descriptor sets to command buffer for given collection
437// of descriptors descIndex (see Vars NDescs for info).
438func (sy *System) BeginRenderPass(cmd vk.CommandBuffer, fr *Framebuffer, descIndex int) {
439 sy.CmdBindVars(cmd, descIndex)
440 sy.Render.BeginRenderPass(cmd, fr)
441}
442
443// ResetBeginRenderPass adds commands to the given command buffer
444// to reset command buffer and call begin on it, then starts

Callers 1

ResetBeginRenderPassMethod · 0.95

Calls 1

CmdBindVarsMethod · 0.95

Tested by

no test coverage detected