rand

command
v1.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

README

rand

This example tests the slrand random number generation functions. The go test in slrand itself tests the Go version of the code against known values, and this example tests the GPU HLSL versions against the Go versions.

Building

There is a //go:generate comment directive in main.go that calls gosl on the relevant files, so you can do go generate followed by go build to run it. There is also a Makefile with the same gosl command, so make can be used instead of go generate.

The generated files go into the shaders/ subdirectory.

Ignore the type alignment checking errors about Uint2 and Vec2 not being an even multiple of 16 bytes -- we have put in the necessary padding.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL