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

Method Defaults

vgpu/renderframe.go:77–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func (rf *RenderFrame) Defaults() {
78 rf.NFrames = 1
79 rf.Format.Defaults()
80 // note: screen-correct results obtained by using Srgb here, which forces
81 // this format in the final output. Looks like what comes out from direct rendering.
82 rf.Format.Set(1024, 768, vk.FormatR8g8b8a8Srgb)
83 // rf.Format.Set(1024, 768, vk.FormatR8g8b8a8Unorm)
84 rf.Format.SetMultisample(4)
85}
86
87// Init initializes the device and all other resources for the renderframe.
88func (rf *RenderFrame) Init(gp *GPU, makeDevice bool) error {

Callers 2

NewRenderFrameOwnDeviceFunction · 0.95
NewRenderFrameFunction · 0.95

Calls 3

SetMultisampleMethod · 0.80
DefaultsMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected