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

Method IsStdRGBA

vgpu/image.go:195–197  ·  view source on GitHub ↗

IsStdRGBA returns true if image format is the standard vk.FormatR8g8b8a8Srgb format which is compatible with go image.RGBA format.

()

Source from the content-addressed store, hash-verified

193// IsStdRGBA returns true if image format is the standard vk.FormatR8g8b8a8Srgb format
194// which is compatible with go image.RGBA format.
195func (im *ImageFormat) IsStdRGBA() bool {
196 return im.Format == vk.FormatR8g8b8a8Srgb
197}
198
199// IsRGBAUnorm returns true if image format is the vk.FormatR8g8b8a8Unorm format
200// which is compatible with go image.RGBA format with colorspace conversion.

Callers 4

GoImageMethod · 0.80
DevGoImageMethod · 0.80
DevGoImageCopyMethod · 0.80
SetGoImageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected