ó
    š3jb  ã                   ó`   • 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)	a  OpenGL extension EXT.shader_samples_identical

This module customises the behaviour of the 
OpenGL.raw.GLES2.EXT.shader_samples_identical to provide a more 
Python-friendly API

Overview (from the spec)
        
        Multisampled antialiasing has become a common method for improving the
        quality of rendered images.  Multisampling differs from supersampling in
        that the color of a primitive that covers all or part of a pixel is
        resolved once, regardless of the number of samples covered.  If a large
        polygon is rendered, the colors of all samples in each interior pixel will
        be the same.  This suggests a simple compression scheme that can reduce
        the necessary memory bandwidth requirements.  In one such scheme, each
        sample is stored in a separate slice of the multisample surface.  An
        additional multisample control surface (MCS) contains a mapping from pixel
        samples to slices.
        
        If all the values stored in the MCS for a particular pixel are the same,
        then all the samples have the same value.  Applications can take advantage
        of this information to reduce the bandwidth of reading multisample
        textures.  A custom multisample resolve filter could optimize resolving
        pixels where every sample is identical by reading the color once.
        
        color = texelFetch(sampler, coordinate, 0);
        if (!textureSamplesIdenticalEXT(sampler, coordinate)) {
            for (int i = 1; i < MAX_SAMPLES; i++) {
                vec4 c = texelFetch(sampler, coordinate, i);
        
                //... accumulate c into color
        
            }
        }

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/shader_samples_identical.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    Úc/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GLES2/EXT/shader_samples_identical.pyÚglInitShaderSamplesIdenticalEXTr   .   s   € å!Ø×$Ò$¤oÓ7Ð7ó    )Ú__doc__r   r   r   r   r   r   ÚctypesÚOpenGL.raw.GLES2r   r	   Ú-OpenGL.raw.GLES2.EXT.shader_samples_identicalr   r   © r   r   Ú<module>r      s'   ðñ%÷L .Ñ -ß &Û ß ,Ü ;Ý Ió8r   