Intrinsics1 min read

sincos

Combined sine/cosine intrinsic.

Reading Time
1 min
Word Count
125
Sections
3
Try It Live

Test sincos in a live shader

Open the playground, start from a visual preset, and wire sincos into the fragment stage to see how it behaves with real values.

Open Playground

Live Demo Pending

This intrinsic does not yet have a self-contained interactive preview. Compute-only and external-resource intrinsics need a different demo path than the current fragment and 3D showcases.

sincos exists in the current compiler intrinsic set, but the old docs for it relied on out-parameter syntax that is not otherwise documented as part of the public language surface.

Current Guidance

For user-facing BWSL source, prefer separate sin and cos calls:

bwsl
float s = sin(angle);
float c = cos(angle);

This matches the documented language surface and keeps examples portable across the rest of the reference.

Why This Page Is Cautious

Earlier documentation showed sincos as if general out parameters were available in user code. The current parser and public language reference do not document that parameter mode, so this page intentionally avoids promoting unsupported example syntax.

Back ends may still lower separate sin and cos calls efficiently, and the combined intrinsic remains part of the compiler's internal intrinsic set.

See Also