All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.vulkan.VkDisplaySurfaceCreateInfoKHR Maven / Gradle / Ivy

Go to download

A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.vulkan;

import javax.annotation.*;

import java.nio.*;

import org.lwjgl.*;
import org.lwjgl.system.*;

import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.MemoryStack.*;

/**
 * Structure specifying parameters of a newly created display plane surface object.
 * 
 * 
Description
* *
Note
* *

Creating a display surface must not modify the state of the displays, planes, or other resources it names. For example, it must not apply the specified mode to be set on the associated display. Application of display configuration occurs as a side effect of presenting to a display surface.

*
* *
Valid Usage
* *
    *
  • {@code planeIndex} must be less than the number of display planes supported by the device as determined by calling {@code vkGetPhysicalDeviceDisplayPlanePropertiesKHR}
  • *
  • If the {@code planeReorderPossible} member of the {@link VkDisplayPropertiesKHR} structure returned by {@code vkGetPhysicalDeviceDisplayPropertiesKHR} for the display corresponding to {@code displayMode} is {@link VK10#VK_TRUE TRUE} then {@code planeStackIndex} must be less than the number of display planes supported by the device as determined by calling {@code vkGetPhysicalDeviceDisplayPlanePropertiesKHR}; otherwise {@code planeStackIndex} must equal the {@code currentStackIndex} member of {@link VkDisplayPlanePropertiesKHR} returned by {@code vkGetPhysicalDeviceDisplayPlanePropertiesKHR} for the display plane corresponding to {@code displayMode}
  • *
  • If {@code alphaMode} is {@link KHRDisplay#VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR} then {@code globalAlpha} must be between 0 and 1, inclusive
  • *
  • {@code alphaMode} must be one of the bits present in the {@code supportedAlpha} member of {@link VkDisplayPlaneCapabilitiesKHR} for the display plane corresponding to {@code displayMode}
  • *
  • The {@code width} and {@code height} members of {@code imageExtent} must be less than or equal to {@link VkPhysicalDeviceLimits}{@code ::maxImageDimension2D}
  • *
* *
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link KHRDisplay#VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR}
  • *
  • {@code pNext} must be {@code NULL}
  • *
  • {@code flags} must be 0
  • *
  • {@code displayMode} must be a valid {@code VkDisplayModeKHR} handle
  • *
  • {@code transform} must be a valid {@code VkSurfaceTransformFlagBitsKHR} value
  • *
  • {@code alphaMode} must be a valid {@code VkDisplayPlaneAlphaFlagBitsKHR} value
  • *
* *
See Also
* *

{@link VkExtent2D}, {@link KHRDisplay#vkCreateDisplayPlaneSurfaceKHR CreateDisplayPlaneSurfaceKHR}

* *

Layout

* *

 * struct VkDisplaySurfaceCreateInfoKHR {
 *     VkStructureType {@link #sType};
 *     void const * {@link #pNext};
 *     VkDisplaySurfaceCreateFlagsKHR {@link #flags};
 *     VkDisplayModeKHR {@link #displayMode};
 *     uint32_t {@link #planeIndex};
 *     uint32_t {@link #planeStackIndex};
 *     VkSurfaceTransformFlagBitsKHR {@link #transform};
 *     float {@link #globalAlpha};
 *     VkDisplayPlaneAlphaFlagBitsKHR {@link #alphaMode};
 *     {@link VkExtent2D VkExtent2D} {@link #imageExtent};
 * }
*/ public class VkDisplaySurfaceCreateInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; /** The struct alignment in bytes. */ public static final int ALIGNOF; /** The struct member offsets. */ public static final int STYPE, PNEXT, FLAGS, DISPLAYMODE, PLANEINDEX, PLANESTACKINDEX, TRANSFORM, GLOBALALPHA, ALPHAMODE, IMAGEEXTENT; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(4), __member(8), __member(4), __member(4), __member(4), __member(4), __member(4), __member(VkExtent2D.SIZEOF, VkExtent2D.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); STYPE = layout.offsetof(0); PNEXT = layout.offsetof(1); FLAGS = layout.offsetof(2); DISPLAYMODE = layout.offsetof(3); PLANEINDEX = layout.offsetof(4); PLANESTACKINDEX = layout.offsetof(5); TRANSFORM = layout.offsetof(6); GLOBALALPHA = layout.offsetof(7); ALPHAMODE = layout.offsetof(8); IMAGEEXTENT = layout.offsetof(9); } /** * Creates a {@code VkDisplaySurfaceCreateInfoKHR} instance at the current position of the specified {@link 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.

*/ public VkDisplaySurfaceCreateInfoKHR(ByteBuffer container) { super(memAddress(container), __checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** the type of this structure. */ @NativeType("VkStructureType") public int sType() { return nsType(address()); } /** {@code NULL} or a pointer to a structure extending this structure. */ @NativeType("void const *") public long pNext() { return npNext(address()); } /** reserved for future use, and must be zero. */ @NativeType("VkDisplaySurfaceCreateFlagsKHR") public int flags() { return nflags(address()); } /** a {@code VkDisplayModeKHR} handle specifying the mode to use when displaying this surface. */ @NativeType("VkDisplayModeKHR") public long displayMode() { return ndisplayMode(address()); } /** the plane on which this surface appears. */ @NativeType("uint32_t") public int planeIndex() { return nplaneIndex(address()); } /** the z-order of the plane. */ @NativeType("uint32_t") public int planeStackIndex() { return nplaneStackIndex(address()); } /** a {@code VkSurfaceTransformFlagBitsKHR} value specifying the transformation to apply to images as part of the scanout operation. */ @NativeType("VkSurfaceTransformFlagBitsKHR") public int transform() { return ntransform(address()); } /** the global alpha value. This value is ignored if {@code alphaMode} is not {@link KHRDisplay#VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR}. */ public float globalAlpha() { return nglobalAlpha(address()); } /** a {@code VkDisplayPlaneAlphaFlagBitsKHR} value specifying the type of alpha blending to use. */ @NativeType("VkDisplayPlaneAlphaFlagBitsKHR") public int alphaMode() { return nalphaMode(address()); } /** the size of the presentable images to use with the surface. */ public VkExtent2D imageExtent() { return nimageExtent(address()); } /** Sets the specified value to the {@link #sType} field. */ public VkDisplaySurfaceCreateInfoKHR sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the {@link KHRDisplay#VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR} value to the {@link #sType} field. */ public VkDisplaySurfaceCreateInfoKHR sType$Default() { return sType(KHRDisplay.VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR); } /** Sets the specified value to the {@link #pNext} field. */ public VkDisplaySurfaceCreateInfoKHR pNext(@NativeType("void const *") long value) { npNext(address(), value); return this; } /** Sets the specified value to the {@link #flags} field. */ public VkDisplaySurfaceCreateInfoKHR flags(@NativeType("VkDisplaySurfaceCreateFlagsKHR") int value) { nflags(address(), value); return this; } /** Sets the specified value to the {@link #displayMode} field. */ public VkDisplaySurfaceCreateInfoKHR displayMode(@NativeType("VkDisplayModeKHR") long value) { ndisplayMode(address(), value); return this; } /** Sets the specified value to the {@link #planeIndex} field. */ public VkDisplaySurfaceCreateInfoKHR planeIndex(@NativeType("uint32_t") int value) { nplaneIndex(address(), value); return this; } /** Sets the specified value to the {@link #planeStackIndex} field. */ public VkDisplaySurfaceCreateInfoKHR planeStackIndex(@NativeType("uint32_t") int value) { nplaneStackIndex(address(), value); return this; } /** Sets the specified value to the {@link #transform} field. */ public VkDisplaySurfaceCreateInfoKHR transform(@NativeType("VkSurfaceTransformFlagBitsKHR") int value) { ntransform(address(), value); return this; } /** Sets the specified value to the {@link #globalAlpha} field. */ public VkDisplaySurfaceCreateInfoKHR globalAlpha(float value) { nglobalAlpha(address(), value); return this; } /** Sets the specified value to the {@link #alphaMode} field. */ public VkDisplaySurfaceCreateInfoKHR alphaMode(@NativeType("VkDisplayPlaneAlphaFlagBitsKHR") int value) { nalphaMode(address(), value); return this; } /** Copies the specified {@link VkExtent2D} to the {@link #imageExtent} field. */ public VkDisplaySurfaceCreateInfoKHR imageExtent(VkExtent2D value) { nimageExtent(address(), value); return this; } /** Passes the {@link #imageExtent} field to the specified {@link java.util.function.Consumer Consumer}. */ public VkDisplaySurfaceCreateInfoKHR imageExtent(java.util.function.Consumer consumer) { consumer.accept(imageExtent()); return this; } /** Initializes this struct with the specified values. */ public VkDisplaySurfaceCreateInfoKHR set( int sType, long pNext, int flags, long displayMode, int planeIndex, int planeStackIndex, int transform, float globalAlpha, int alphaMode, VkExtent2D imageExtent ) { sType(sType); pNext(pNext); flags(flags); displayMode(displayMode); planeIndex(planeIndex); planeStackIndex(planeStackIndex); transform(transform); globalAlpha(globalAlpha); alphaMode(alphaMode); imageExtent(imageExtent); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkDisplaySurfaceCreateInfoKHR set(VkDisplaySurfaceCreateInfoKHR src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@code VkDisplaySurfaceCreateInfoKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkDisplaySurfaceCreateInfoKHR malloc() { return wrap(VkDisplaySurfaceCreateInfoKHR.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code VkDisplaySurfaceCreateInfoKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkDisplaySurfaceCreateInfoKHR calloc() { return wrap(VkDisplaySurfaceCreateInfoKHR.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code VkDisplaySurfaceCreateInfoKHR} instance allocated with {@link BufferUtils}. */ public static VkDisplaySurfaceCreateInfoKHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); return wrap(VkDisplaySurfaceCreateInfoKHR.class, memAddress(container), container); } /** Returns a new {@code VkDisplaySurfaceCreateInfoKHR} instance for the specified memory address. */ public static VkDisplaySurfaceCreateInfoKHR create(long address) { return wrap(VkDisplaySurfaceCreateInfoKHR.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkDisplaySurfaceCreateInfoKHR createSafe(long address) { return address == NULL ? null : wrap(VkDisplaySurfaceCreateInfoKHR.class, address); } /** * Returns a new {@link VkDisplaySurfaceCreateInfoKHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkDisplaySurfaceCreateInfoKHR.Buffer malloc(int capacity) { return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** * Returns a new {@link VkDisplaySurfaceCreateInfoKHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkDisplaySurfaceCreateInfoKHR.Buffer calloc(int capacity) { return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkDisplaySurfaceCreateInfoKHR.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static VkDisplaySurfaceCreateInfoKHR.Buffer create(int capacity) { ByteBuffer container = __create(capacity, SIZEOF); return wrap(Buffer.class, memAddress(container), capacity, container); } /** * Create a {@link VkDisplaySurfaceCreateInfoKHR.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static VkDisplaySurfaceCreateInfoKHR.Buffer create(long address, int capacity) { return wrap(Buffer.class, address, capacity); } /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkDisplaySurfaceCreateInfoKHR.Buffer createSafe(long address, int capacity) { return address == NULL ? null : wrap(Buffer.class, address, capacity); } // ----------------------------------- /** Deprecated for removal in 3.4.0. Use {@link #malloc(MemoryStack)} instead. */ @Deprecated public static VkDisplaySurfaceCreateInfoKHR mallocStack() { return malloc(stackGet()); } /** Deprecated for removal in 3.4.0. Use {@link #calloc(MemoryStack)} instead. */ @Deprecated public static VkDisplaySurfaceCreateInfoKHR callocStack() { return calloc(stackGet()); } /** Deprecated for removal in 3.4.0. Use {@link #malloc(MemoryStack)} instead. */ @Deprecated public static VkDisplaySurfaceCreateInfoKHR mallocStack(MemoryStack stack) { return malloc(stack); } /** Deprecated for removal in 3.4.0. Use {@link #calloc(MemoryStack)} instead. */ @Deprecated public static VkDisplaySurfaceCreateInfoKHR callocStack(MemoryStack stack) { return calloc(stack); } /** Deprecated for removal in 3.4.0. Use {@link #malloc(int, MemoryStack)} instead. */ @Deprecated public static VkDisplaySurfaceCreateInfoKHR.Buffer mallocStack(int capacity) { return malloc(capacity, stackGet()); } /** Deprecated for removal in 3.4.0. Use {@link #calloc(int, MemoryStack)} instead. */ @Deprecated public static VkDisplaySurfaceCreateInfoKHR.Buffer callocStack(int capacity) { return calloc(capacity, stackGet()); } /** Deprecated for removal in 3.4.0. Use {@link #malloc(int, MemoryStack)} instead. */ @Deprecated public static VkDisplaySurfaceCreateInfoKHR.Buffer mallocStack(int capacity, MemoryStack stack) { return malloc(capacity, stack); } /** Deprecated for removal in 3.4.0. Use {@link #calloc(int, MemoryStack)} instead. */ @Deprecated public static VkDisplaySurfaceCreateInfoKHR.Buffer callocStack(int capacity, MemoryStack stack) { return calloc(capacity, stack); } /** * Returns a new {@code VkDisplaySurfaceCreateInfoKHR} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkDisplaySurfaceCreateInfoKHR malloc(MemoryStack stack) { return wrap(VkDisplaySurfaceCreateInfoKHR.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@code VkDisplaySurfaceCreateInfoKHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkDisplaySurfaceCreateInfoKHR calloc(MemoryStack stack) { return wrap(VkDisplaySurfaceCreateInfoKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkDisplaySurfaceCreateInfoKHR.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkDisplaySurfaceCreateInfoKHR.Buffer malloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link VkDisplaySurfaceCreateInfoKHR.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkDisplaySurfaceCreateInfoKHR.Buffer calloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } // ----------------------------------- /** Unsafe version of {@link #sType}. */ public static int nsType(long struct) { return UNSAFE.getInt(null, struct + VkDisplaySurfaceCreateInfoKHR.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkDisplaySurfaceCreateInfoKHR.PNEXT); } /** Unsafe version of {@link #flags}. */ public static int nflags(long struct) { return UNSAFE.getInt(null, struct + VkDisplaySurfaceCreateInfoKHR.FLAGS); } /** Unsafe version of {@link #displayMode}. */ public static long ndisplayMode(long struct) { return UNSAFE.getLong(null, struct + VkDisplaySurfaceCreateInfoKHR.DISPLAYMODE); } /** Unsafe version of {@link #planeIndex}. */ public static int nplaneIndex(long struct) { return UNSAFE.getInt(null, struct + VkDisplaySurfaceCreateInfoKHR.PLANEINDEX); } /** Unsafe version of {@link #planeStackIndex}. */ public static int nplaneStackIndex(long struct) { return UNSAFE.getInt(null, struct + VkDisplaySurfaceCreateInfoKHR.PLANESTACKINDEX); } /** Unsafe version of {@link #transform}. */ public static int ntransform(long struct) { return UNSAFE.getInt(null, struct + VkDisplaySurfaceCreateInfoKHR.TRANSFORM); } /** Unsafe version of {@link #globalAlpha}. */ public static float nglobalAlpha(long struct) { return UNSAFE.getFloat(null, struct + VkDisplaySurfaceCreateInfoKHR.GLOBALALPHA); } /** Unsafe version of {@link #alphaMode}. */ public static int nalphaMode(long struct) { return UNSAFE.getInt(null, struct + VkDisplaySurfaceCreateInfoKHR.ALPHAMODE); } /** Unsafe version of {@link #imageExtent}. */ public static VkExtent2D nimageExtent(long struct) { return VkExtent2D.create(struct + VkDisplaySurfaceCreateInfoKHR.IMAGEEXTENT); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { UNSAFE.putInt(null, struct + VkDisplaySurfaceCreateInfoKHR.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkDisplaySurfaceCreateInfoKHR.PNEXT, value); } /** Unsafe version of {@link #flags(int) flags}. */ public static void nflags(long struct, int value) { UNSAFE.putInt(null, struct + VkDisplaySurfaceCreateInfoKHR.FLAGS, value); } /** Unsafe version of {@link #displayMode(long) displayMode}. */ public static void ndisplayMode(long struct, long value) { UNSAFE.putLong(null, struct + VkDisplaySurfaceCreateInfoKHR.DISPLAYMODE, value); } /** Unsafe version of {@link #planeIndex(int) planeIndex}. */ public static void nplaneIndex(long struct, int value) { UNSAFE.putInt(null, struct + VkDisplaySurfaceCreateInfoKHR.PLANEINDEX, value); } /** Unsafe version of {@link #planeStackIndex(int) planeStackIndex}. */ public static void nplaneStackIndex(long struct, int value) { UNSAFE.putInt(null, struct + VkDisplaySurfaceCreateInfoKHR.PLANESTACKINDEX, value); } /** Unsafe version of {@link #transform(int) transform}. */ public static void ntransform(long struct, int value) { UNSAFE.putInt(null, struct + VkDisplaySurfaceCreateInfoKHR.TRANSFORM, value); } /** Unsafe version of {@link #globalAlpha(float) globalAlpha}. */ public static void nglobalAlpha(long struct, float value) { UNSAFE.putFloat(null, struct + VkDisplaySurfaceCreateInfoKHR.GLOBALALPHA, value); } /** Unsafe version of {@link #alphaMode(int) alphaMode}. */ public static void nalphaMode(long struct, int value) { UNSAFE.putInt(null, struct + VkDisplaySurfaceCreateInfoKHR.ALPHAMODE, value); } /** Unsafe version of {@link #imageExtent(VkExtent2D) imageExtent}. */ public static void nimageExtent(long struct, VkExtent2D value) { memCopy(value.address(), struct + VkDisplaySurfaceCreateInfoKHR.IMAGEEXTENT, VkExtent2D.SIZEOF); } // ----------------------------------- /** An array of {@link VkDisplaySurfaceCreateInfoKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { private static final VkDisplaySurfaceCreateInfoKHR ELEMENT_FACTORY = VkDisplaySurfaceCreateInfoKHR.create(-1L); /** * Creates a new {@code VkDisplaySurfaceCreateInfoKHR.Buffer} instance backed by the specified container. * * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided * by {@link VkDisplaySurfaceCreateInfoKHR#SIZEOF}, and its mark will be undefined. * *

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

*/ public Buffer(ByteBuffer container) { super(container, container.remaining() / SIZEOF); } public Buffer(long address, int cap) { super(address, null, -1, 0, cap, cap); } Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { super(address, container, mark, pos, lim, cap); } @Override protected Buffer self() { return this; } @Override protected VkDisplaySurfaceCreateInfoKHR getElementFactory() { return ELEMENT_FACTORY; } /** @return the value of the {@link VkDisplaySurfaceCreateInfoKHR#sType} field. */ @NativeType("VkStructureType") public int sType() { return VkDisplaySurfaceCreateInfoKHR.nsType(address()); } /** @return the value of the {@link VkDisplaySurfaceCreateInfoKHR#pNext} field. */ @NativeType("void const *") public long pNext() { return VkDisplaySurfaceCreateInfoKHR.npNext(address()); } /** @return the value of the {@link VkDisplaySurfaceCreateInfoKHR#flags} field. */ @NativeType("VkDisplaySurfaceCreateFlagsKHR") public int flags() { return VkDisplaySurfaceCreateInfoKHR.nflags(address()); } /** @return the value of the {@link VkDisplaySurfaceCreateInfoKHR#displayMode} field. */ @NativeType("VkDisplayModeKHR") public long displayMode() { return VkDisplaySurfaceCreateInfoKHR.ndisplayMode(address()); } /** @return the value of the {@link VkDisplaySurfaceCreateInfoKHR#planeIndex} field. */ @NativeType("uint32_t") public int planeIndex() { return VkDisplaySurfaceCreateInfoKHR.nplaneIndex(address()); } /** @return the value of the {@link VkDisplaySurfaceCreateInfoKHR#planeStackIndex} field. */ @NativeType("uint32_t") public int planeStackIndex() { return VkDisplaySurfaceCreateInfoKHR.nplaneStackIndex(address()); } /** @return the value of the {@link VkDisplaySurfaceCreateInfoKHR#transform} field. */ @NativeType("VkSurfaceTransformFlagBitsKHR") public int transform() { return VkDisplaySurfaceCreateInfoKHR.ntransform(address()); } /** @return the value of the {@link VkDisplaySurfaceCreateInfoKHR#globalAlpha} field. */ public float globalAlpha() { return VkDisplaySurfaceCreateInfoKHR.nglobalAlpha(address()); } /** @return the value of the {@link VkDisplaySurfaceCreateInfoKHR#alphaMode} field. */ @NativeType("VkDisplayPlaneAlphaFlagBitsKHR") public int alphaMode() { return VkDisplaySurfaceCreateInfoKHR.nalphaMode(address()); } /** @return a {@link VkExtent2D} view of the {@link VkDisplaySurfaceCreateInfoKHR#imageExtent} field. */ public VkExtent2D imageExtent() { return VkDisplaySurfaceCreateInfoKHR.nimageExtent(address()); } /** Sets the specified value to the {@link VkDisplaySurfaceCreateInfoKHR#sType} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer sType(@NativeType("VkStructureType") int value) { VkDisplaySurfaceCreateInfoKHR.nsType(address(), value); return this; } /** Sets the {@link KHRDisplay#VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR} value to the {@link VkDisplaySurfaceCreateInfoKHR#sType} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer sType$Default() { return sType(KHRDisplay.VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR); } /** Sets the specified value to the {@link VkDisplaySurfaceCreateInfoKHR#pNext} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer pNext(@NativeType("void const *") long value) { VkDisplaySurfaceCreateInfoKHR.npNext(address(), value); return this; } /** Sets the specified value to the {@link VkDisplaySurfaceCreateInfoKHR#flags} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer flags(@NativeType("VkDisplaySurfaceCreateFlagsKHR") int value) { VkDisplaySurfaceCreateInfoKHR.nflags(address(), value); return this; } /** Sets the specified value to the {@link VkDisplaySurfaceCreateInfoKHR#displayMode} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer displayMode(@NativeType("VkDisplayModeKHR") long value) { VkDisplaySurfaceCreateInfoKHR.ndisplayMode(address(), value); return this; } /** Sets the specified value to the {@link VkDisplaySurfaceCreateInfoKHR#planeIndex} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer planeIndex(@NativeType("uint32_t") int value) { VkDisplaySurfaceCreateInfoKHR.nplaneIndex(address(), value); return this; } /** Sets the specified value to the {@link VkDisplaySurfaceCreateInfoKHR#planeStackIndex} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer planeStackIndex(@NativeType("uint32_t") int value) { VkDisplaySurfaceCreateInfoKHR.nplaneStackIndex(address(), value); return this; } /** Sets the specified value to the {@link VkDisplaySurfaceCreateInfoKHR#transform} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer transform(@NativeType("VkSurfaceTransformFlagBitsKHR") int value) { VkDisplaySurfaceCreateInfoKHR.ntransform(address(), value); return this; } /** Sets the specified value to the {@link VkDisplaySurfaceCreateInfoKHR#globalAlpha} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer globalAlpha(float value) { VkDisplaySurfaceCreateInfoKHR.nglobalAlpha(address(), value); return this; } /** Sets the specified value to the {@link VkDisplaySurfaceCreateInfoKHR#alphaMode} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer alphaMode(@NativeType("VkDisplayPlaneAlphaFlagBitsKHR") int value) { VkDisplaySurfaceCreateInfoKHR.nalphaMode(address(), value); return this; } /** Copies the specified {@link VkExtent2D} to the {@link VkDisplaySurfaceCreateInfoKHR#imageExtent} field. */ public VkDisplaySurfaceCreateInfoKHR.Buffer imageExtent(VkExtent2D value) { VkDisplaySurfaceCreateInfoKHR.nimageExtent(address(), value); return this; } /** Passes the {@link VkDisplaySurfaceCreateInfoKHR#imageExtent} field to the specified {@link java.util.function.Consumer Consumer}. */ public VkDisplaySurfaceCreateInfoKHR.Buffer imageExtent(java.util.function.Consumer consumer) { consumer.accept(imageExtent()); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy