Difference between revisions of "Vulkan"

From Free Pascal wiki
Jump to navigationJump to search
Line 5: Line 5:
 
SetExceptionMask([exInvalidOp, exDenormalized, exPrecision]);  
 
SetExceptionMask([exInvalidOp, exDenormalized, exPrecision]);  
 
</source>
 
</source>
 +
[url=http://www.freepascal.org/docs-html/rtl/math/setexceptionmask.html]SetExceptionMask[/url] function is declared in Math unit
 +
 
==Headers==
 
==Headers==
 
There are no Vulkan headers in fpc packages, but some are available online:
 
There are no Vulkan headers in fpc packages, but some are available online:

Revision as of 14:35, 17 April 2017

Vulkan is a new low-level Graphics API, intended to replace OpenGL.

Float Point Exception

Similar to OpenGL apps, the float-point exceptions should be turned off. This can be achieved by adding the following code prior to calling Vulkan API:

SetExceptionMask([exInvalidOp, exDenormalized, exPrecision]);

[url=http://www.freepascal.org/docs-html/rtl/math/setexceptionmask.html]SetExceptionMask[/url] function is declared in Math unit

Headers

There are no Vulkan headers in fpc packages, but some are available online:

See Also