18 const XrSession &session,
19 const XrViewConfigurationView &view_config);
28 GHOST_TXrSwapchainFormat
getFormat()
const;
42 std::unique_ptr<OpenXRSwapchainData> oxr_;
43 int32_t image_width_, image_height_;
44 GHOST_TXrSwapchainFormat format_;
46 bool is_srgb_buffer_ =
false;
int64_t getGPUFormat() const
return the swapchain format selected by the graphic binding.
GHOST_XrSwapchain(GHOST_IXrGraphicsBinding &gpu_binding, const XrSession &session, const XrViewConfigurationView &view_config)
GHOST_TXrSwapchainFormat getFormat() const
void updateCompositionLayerProjectViewSubImage(XrSwapchainSubImage &r_sub_image)
bool isBufferSRGB() const
XrSwapchainImageBaseHeader * acquireDrawableSwapchainImage()