(I wasnt allowed to include links, so I have to try to explain without them):
I am converting:
from D3D11 to OpenGL to use in my own project.
When filling in the XrSwapchainCreateInfo
at line 363 he puts a value for format, DXGI_FORMAT_R8G8B8A8_UNORM
which equals to 28
according to DXGI_FORMAT
enumerations.
If I am using OpenGL, what do I put in here? I cant use GL enums because they dont return int64_t
values. I have also tried to use their corresponding OpenGL bindings values, but I always get XrResult = -26
(XR_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED
)
For example, I tried both 6408
(GL_RGBA
) and 3553
(GL_TEXTURE_2D
).
What number does it expect here with OpenGL? And what are my choices?