ó
    š3j|  ã                   ó`   • S r SSKJrJrJr  SSKJrJr  SSKrSSKJ	r	J
r
  SSK7  SSKJr  S rg)	aI  OpenGL extension NVX.gpu_memory_info

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

Overview (from the spec)
        
        Most graphics systems offer a limited amount of onboard
        high-performance memory for storing textures, geometric
        primitives, and other data used for rendering.
        
        OpenGL implementations are expected to manage the residence of
        objects (that is, the memory pools in which objects are placed)
        automatically.  This is simple for applications to use, and the
        high level of abstraction allows many different underlying
        hardware implementations.  However performance sensitive 
        applications that are willing to adjust their usage of these memory 
        resources in order to maintain their desired performance are unable 
        to determine when the limited onboard memory resources are 
        approaching full utilization and swapping (with its related 
        performance impact) is imminent.
        
        GL_NVX_gpu_memory_info provides applications visibility into GPU 
        hardware memory utilization in order to allow the application to 
        effectively manage its resource allocations in the scope of the 
        current available GPU memory.  This information is made available 
        to the applications in the form of the total available resource 
        size (after initial system allocations) and the current available 
        resource (e.g. free memory) as well as a count of the number and
        total size of evictions of data from GPU memory since the last time
        this information was queried from this context using this extension.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/NVX/gpu_memory_info.txt
é    )ÚplatformÚconstantÚarrays)Ú
extensionsÚwrapperN)Ú_typesÚ_glgets)Ú*)Ú_EXTENSION_NAMEc                  ó:   • SSK Jn   U R                  " [        5      $ )z=Return boolean indicating whether this extension is availabler   ©r   )ÚOpenGLr   ÚhasGLExtensionr   r   s    ÚW/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/NVX/gpu_memory_info.pyÚglInitGpuMemoryInfoNVXr   ,   s   € å!Ø×$Ò$¤oÓ7Ð7ó    )Ú__doc__r   r   r   r   r   r   ÚctypesÚOpenGL.raw.GLr   r	   Ú!OpenGL.raw.GL.NVX.gpu_memory_infor   r   © r   r   Ú<module>r      s'   ðñ#÷H .Ñ -ß &Û ß )Ü /Ý =ó8r   