When XrSwapchainStateSamplerVulkanFB is specified in the call to UpdateSwapchainFB, texture sampler state for all images in the XrSwapchain will be updated for the compositor process. For most cases, the sampler state update is only required compositor-side, as that is where the swapchain images are sampled. If the application requires sampling of the swapchain images, the application will be responsible for updating the texture state using normal Vulkan mechanisms and synchronizing appropriately with application-side rendering.
When XrSwapchainStateSamplerVulkanFB is specified in the call to GetSwapchainStateFB, the sampler state will be populated with the current swapchain sampler state.
To use XrSwapchainStateSamplerVulkanFB, USE_GRAPHICS_API_VULKAN must be defined before including openxr_platform.h.
XR_FB_swapchain_update_state_vulkan extension must be enabled prior to using XrSwapchainStateSamplerVulkanFBtype must be TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FBnext must be NULL or a valid pointer to the next structure in a structure chainminFilter must be a valid VkFilter valuemagFilter must be a valid VkFilter valuemipmapMode must be a valid VkSamplerMipmapMode valuewrapModeS must be a valid VkSamplerAddressMode valuewrapModeT must be a valid VkSamplerAddressMode valueswizzleRed must be a valid VkComponentSwizzle valueswizzleGreen must be a valid VkComponentSwizzle valueswizzleBlue must be a valid VkComponentSwizzle valueswizzleAlpha must be a valid VkComponentSwizzle valueXrColor4f, GetSwapchainStateFB, UpdateSwapchainFB
struct XrSwapchainStateSamplerVulkanFB {
XrStructureType type;
void * next;
VkFilter minFilter;
VkFilter magFilter;
VkSamplerMipmapMode mipmapMode;
VkSamplerAddressMode wrapModeS;
VkSamplerAddressMode wrapModeT;
VkComponentSwizzle swizzleRed;
VkComponentSwizzle swizzleGreen;
VkComponentSwizzle swizzleBlue;
VkComponentSwizzle swizzleAlpha;
float maxAnisotropy;
XrColor4f borderColor;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrSwapchainStateSamplerVulkanFB.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BORDERCOLOR
The struct member offsets. |
| public static final int | MAGFILTER
The struct member offsets. |
| public static final int | MAXANISOTROPY
The struct member offsets. |
| public static final int | MINFILTER
The struct member offsets. |
| public static final int | MIPMAPMODE
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SWIZZLEALPHA
The struct member offsets. |
| public static final int | SWIZZLEBLUE
The struct member offsets. |
| public static final int | SWIZZLEGREEN
The struct member offsets. |
| public static final int | SWIZZLERED
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | WRAPMODES
The struct member offsets. |
| public static final int | WRAPMODET
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrSwapchainStateSamplerVulkanFB(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public XrColor4f | |
| public XrSwapchainStateSamplerVulkanFB | |
| public XrSwapchainStateSamplerVulkanFB | |
| public static XrSwapchainStateSamplerVulkanFB | |
| public static XrSwapchainStateSamplerVulkanFB. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrSwapchainStateSamplerVulkanFB | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrSwapchainStateSamplerVulkanFB. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrSwapchainStateSamplerVulkanFB | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrSwapchainStateSamplerVulkanFB | |
| public static XrSwapchainStateSamplerVulkanFB | create(long address)
Returns a new |
| public static XrSwapchainStateSamplerVulkanFB | create(XrSwapchainStateBaseHeaderFB value)
Downcasts the specified |
| public static XrSwapchainStateSamplerVulkanFB. | create(int
the buffer capacity capacity)Returns a new |
| public static XrSwapchainStateSamplerVulkanFB. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrSwapchainStateSamplerVulkanFB. | create(XrSwapchainStateBaseHeaderFB.
Downcasts the specified |
| public static XrSwapchainStateSamplerVulkanFB | |
| public static XrSwapchainStateSamplerVulkanFB. | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB | |
| public static XrSwapchainStateSamplerVulkanFB | |
| public static XrSwapchainStateSamplerVulkanFB. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrSwapchainStateSamplerVulkanFB | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrSwapchainStateSamplerVulkanFB. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public float | |
| public XrSwapchainStateSamplerVulkanFB | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB | |
| public static XrColor4f | |
| public static void | |
| public long | |
| public XrSwapchainStateSamplerVulkanFB | |
| public static int | |
| public static void | |
| public static float | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public XrSwapchainStateSamplerVulkanFB | |
| public XrSwapchainStateSamplerVulkanFB | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB | |
| public XrSwapchainStateSamplerVulkanFB | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB | |
| public int | |
| public XrSwapchainStateSamplerVulkanFB |