Skip to content

A mini-library for performing arbitrary-precision arithmetic in OpenGL ES Shader Language.

Notifications You must be signed in to change notification settings

abel465/glsl-arb-prec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

GLSL Arbitrary Floating-Point Precision

A mini-library for performing arbitrary-precision arithmetic in OpenGL ES Shader Language.

void main() {
	int a[vals];
	a[vals-1] = 394;
	a[vals-2] = 286;
	// ...

	int b[vals];
	zero(b, vals);
	b[vals-1] = 864;
	b[vals-2] = 397;
	// ...

	add(a, b);
	int sum[vals];
	assign(sum, result);

	mul(a, b);
	int prod[vals];
	assign(prod, result);
}

About

A mini-library for performing arbitrary-precision arithmetic in OpenGL ES Shader Language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%