Class XrSwapchainStateSamplerVulkanFB

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSwapchainStateSamplerVulkanFB>
org.lwjgl.openxr.XrSwapchainStateSamplerVulkanFB
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrSwapchainStateSamplerVulkanFB extends org.lwjgl.system.Struct<XrSwapchainStateSamplerVulkanFB> implements org.lwjgl.system.NativeResource
Vulkan-specific swapchain sampler state structure.
Description

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.

Valid Usage (Implicit)
  • The XR_FB_swapchain_update_state_vulkan extension must be enabled prior to using XrSwapchainStateSamplerVulkanFB
  • type must be TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB
  • next must be NULL or a valid pointer to the next structure in a structure chain
  • minFilter must be a valid VkFilter value
  • magFilter must be a valid VkFilter value
  • mipmapMode must be a valid VkSamplerMipmapMode value
  • wrapModeS must be a valid VkSamplerAddressMode value
  • wrapModeT must be a valid VkSamplerAddressMode value
  • swizzleRed must be a valid VkComponentSwizzle value
  • swizzleGreen must be a valid VkComponentSwizzle value
  • swizzleBlue must be a valid VkComponentSwizzle value
  • swizzleAlpha must be a valid VkComponentSwizzle value
See Also

XrColor4f, GetSwapchainStateFB, UpdateSwapchainFB

Layout


 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();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • MINFILTER

      public static final int MINFILTER
      The struct member offsets.
    • MAGFILTER

      public static final int MAGFILTER
      The struct member offsets.
    • MIPMAPMODE

      public static final int MIPMAPMODE
      The struct member offsets.
    • WRAPMODES

      public static final int WRAPMODES
      The struct member offsets.
    • WRAPMODET

      public static final int WRAPMODET
      The struct member offsets.
    • SWIZZLERED

      public static final int SWIZZLERED
      The struct member offsets.
    • SWIZZLEGREEN

      public static final int SWIZZLEGREEN
      The struct member offsets.
    • SWIZZLEBLUE

      public static final int SWIZZLEBLUE
      The struct member offsets.
    • SWIZZLEALPHA

      public static final int SWIZZLEALPHA
      The struct member offsets.
    • MAXANISOTROPY

      public static final int MAXANISOTROPY
      The struct member offsets.
    • BORDERCOLOR

      public static final int BORDERCOLOR
      The struct member offsets.
  • Constructor Details

    • XrSwapchainStateSamplerVulkanFB

      public XrSwapchainStateSamplerVulkanFB(ByteBuffer container)
      Creates a XrSwapchainStateSamplerVulkanFB instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details