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.
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.
BGFX's method
bgfx::isFrameBufferValid
takes array size, and array reference ofAttachment
's. However in the bindings there is only singleBGFXAttachment
object, instead ofBGFXAttachment.Buffer
as it's done in thebgfx_create_frame_buffer_from_attachment
.I'm replaced
MapToInt
withAutoSize
, nowis_frame_buffer_valid
hasBGFXAttachment.Buffer
and same buffer could be utilized both for validating attachments and creating framebuffer from attachments.