a
    i‚jµ  ã                   @   s`   d Z ddlmZmZmZ ddlmZmZ ddlZddlm	Z	m
Z
 ddlT ddlmZ dd	„ ZdS )
aÐ  OpenGL extension AMD.gpu_shader_int16

This module customises the behaviour of the 
OpenGL.raw.GL.AMD.gpu_shader_int16 to provide a more 
Python-friendly API

Overview (from the spec)
	
	This extension was developed to allow implementations supporting 16-bit
	integers to expose the feature in GLSL.
	
	The extension introduces the following features for all shader types:
	
	  * new built-in functions to pack and unpack 32-bit integer types into a
	    two-component 16-bit integer vector;
	
	  * new built-in functions to convert half-precision floating-point
	    values to or from their 16-bit integer bit encodings;
	
	  * vector relational functions supporting comparisons of vectors of
	    16-bit integer types; and
	
	  * common functions abs, frexp, ldexp, sign, min, max, clamp, and mix
	    supporting arguments of 16-bit integer types.
	

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/AMD/gpu_shader_int16.txt
é    )ÚplatformÚconstantÚarrays)Ú
extensionsÚwrapperN)Ú_typesÚ_glgets)Ú*)Ú_EXTENSION_NAMEc                  C   s   ddl m}  |  t¡S )z=Return boolean indicating whether this extension is availabler   ©r   )ÚOpenGLr   ZhasGLExtensionr
   r   © r   ú\/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GL/AMD/gpu_shader_int16.pyÚglInitGpuShaderInt16AMD%   s    r   )Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLr   r   Z"OpenGL.raw.GL.AMD.gpu_shader_int16r
   r   r   r   r   r   Ú<module>   s   