@@ -382,11 +382,13 @@ def release(self) -> None:
382
382
383
383
# Free GL resources.
384
384
gl .glBindFramebuffer (gl .GL_FRAMEBUFFER , self .fbo )
385
+ # pyre-fixme[16]: Module `GL_3_0` has no attribute `glDeleteFramebuffers`.
385
386
gl .glDeleteFramebuffers (1 , [self .fbo ])
386
387
gl .glBindFramebuffer (gl .GL_FRAMEBUFFER , 0 )
387
388
del self .fbo
388
389
389
390
gl .glBindBufferBase (gl .GL_SHADER_STORAGE_BUFFER , 0 , self .mesh_buffer_object )
391
+ # pyre-fixme[16]: Module `GL_1_5` has no attribute `glDeleteBuffers`.
390
392
gl .glDeleteBuffers (1 , [self .mesh_buffer_object ])
391
393
gl .glBindBufferBase (gl .GL_SHADER_STORAGE_BUFFER , 0 , 0 )
392
394
del self .mesh_buffer_object
@@ -402,6 +404,7 @@ def _projection_matrix_to_opengl(self, projection_matrix: torch.Tensor) -> None:
402
404
projection matrix: A 3x3 float tensor.
403
405
"""
404
406
gl .glUseProgram (self .program )
407
+ # pyre-fixme[16]: Module `GL_2_0` has no attribute `glUniformMatrix4fv`.
405
408
gl .glUniformMatrix4fv (
406
409
self .perspective_projection_uniform ,
407
410
1 ,
@@ -592,6 +595,7 @@ def _prepare_persistent_opengl_objects(program, max_faces: int):
592
595
# from pytorch/cuda. The buffer needs enough space to store the three vertices
593
596
# of each face, that is its size in bytes is
594
597
# max_faces * 3 (vertices) * 3 (coordinates) * 4 (bytes)
598
+ # pyre-fixme[16]: Module `GL_1_5` has no attribute `glGenBuffers`.
595
599
mesh_buffer_object = gl .glGenBuffers (1 )
596
600
gl .glBindBufferBase (gl .GL_SHADER_STORAGE_BUFFER , 0 , mesh_buffer_object )
597
601
@@ -604,25 +608,29 @@ def _prepare_persistent_opengl_objects(program, max_faces: int):
604
608
605
609
# Input vertex array object. We will only use it implicitly for indexing the
606
610
# vertices, but the actual input data is passed in the shader storage buffer.
611
+ # pyre-fixme[16]: Module `GL_3_0` has no attribute `glGenVertexArrays`.
607
612
vao = gl .glGenVertexArrays (1 )
608
613
609
614
# Create the framebuffer object (fbo) where we'll store output data.
610
615
MAX_EGL_WIDTH = global_device_context_store .max_egl_width
611
616
MAX_EGL_HEIGHT = global_device_context_store .max_egl_height
617
+ # pyre-fixme[16]: Module `GL_3_0` has no attribute `glGenRenderbuffers`.
612
618
color_buffer = gl .glGenRenderbuffers (1 )
613
619
gl .glBindRenderbuffer (gl .GL_RENDERBUFFER , color_buffer )
614
620
gl .glRenderbufferStorage (
615
621
gl .GL_RENDERBUFFER , gl .GL_RGBA32F , MAX_EGL_WIDTH , MAX_EGL_HEIGHT
616
622
)
617
623
gl .glBindRenderbuffer (gl .GL_RENDERBUFFER , 0 )
618
624
625
+ # pyre-fixme[16]: Module `GL_3_0` has no attribute `glGenRenderbuffers`.
619
626
depth_buffer = gl .glGenRenderbuffers (1 )
620
627
gl .glBindRenderbuffer (gl .GL_RENDERBUFFER , depth_buffer )
621
628
gl .glRenderbufferStorage (
622
629
gl .GL_RENDERBUFFER , gl .GL_DEPTH_COMPONENT , MAX_EGL_WIDTH , MAX_EGL_HEIGHT
623
630
)
624
631
gl .glBindRenderbuffer (gl .GL_RENDERBUFFER , 0 )
625
632
633
+ # pyre-fixme[16]: Module `GL_3_0` has no attribute `glGenFramebuffers`.
626
634
fbo = gl .glGenFramebuffers (1 )
627
635
gl .glBindFramebuffer (gl .GL_FRAMEBUFFER , fbo )
628
636
gl .glFramebufferRenderbuffer (
0 commit comments