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.

Index

Package Files

swizzle_amd64.go swizzle_common.go

func BGRA

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 1 packages. Updated about 23 hours ago. Refresh now. Tools for package owners.