exp: golang.org/x/exp/shiny/driver/internal/swizzle Index | Files

package swizzle

import "golang.org/x/exp/shiny/driver/internal/swizzle"

Package swizzle provides functions for converting between RGBA pixel formats.


Package Files

swizzle_amd64.go swizzle_common.go

func BGRA Uses

func BGRA(p []byte)

BGRA converts a pixel buffer between Go's RGBA and other systems' BGRA byte orders.

It panics if the input slice length is not a multiple of 4.

Package swizzle is imported by 4 packages. Updated 2020-12-29. Refresh now. Tools for package owners.