LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.83k stars 642 forks source link

fix(bgfx) Change parameters for `is_frame_buffer_valid` #993

Closed bonenaut7 closed 4 months ago

bonenaut7 commented 4 months ago

BGFX's method bgfx::isFrameBufferValid takes array size, and array reference of Attachment's. However in the bindings there is only single BGFXAttachment object, instead of BGFXAttachment.Buffer as it's done in the bgfx_create_frame_buffer_from_attachment.

I'm replaced MapToInt with AutoSize, now is_frame_buffer_valid has BGFXAttachment.Buffer and same buffer could be utilized both for validating attachments and creating framebuffer from attachments.

Spasi commented 4 months ago

Thank you @bonenaut7!