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

org.lwjgl.vulkan.VkPipelineDepthStencilStateCreateInfo 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 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 pipeline depth stencil state.
 * 
 * 
Valid Usage
* *
    *
  • If the depth bounds testing feature is not enabled, {@code depthBoundsTestEnable} must be {@link VK10#VK_FALSE FALSE}
  • *
* *
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link VK10#VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO}
  • *
  • {@code pNext} must be {@code NULL}
  • *
  • {@code flags} must be 0
  • *
  • {@code depthCompareOp} must be a valid {@code VkCompareOp} value
  • *
  • {@code front} must be a valid {@link VkStencilOpState} structure
  • *
  • {@code back} must be a valid {@link VkStencilOpState} structure
  • *
* *
See Also
* *

{@link VkGraphicsPipelineCreateInfo}, {@link VkStencilOpState}

* *

Member documentation

* *
    *
  • {@code sType} – the type of this structure.
  • *
  • {@code pNext} – {@code NULL} or a pointer to an extension-specific structure.
  • *
  • {@code flags} – reserved for future use.
  • *
  • {@code depthTestEnable} – controls whether depth testing is enabled.
  • *
  • {@code depthWriteEnable} – controls whether depth writes are enabled when {@code depthTestEnable} is {@link VK10#VK_TRUE TRUE}. Depth writes are always disabled when {@code depthTestEnable} is {@link VK10#VK_FALSE FALSE}.
  • *
  • {@code depthCompareOp} – the comparison operator used in the depth test.
  • *
  • {@code depthBoundsTestEnable} – controls whether depth bounds testing is enabled.
  • *
  • {@code stencilTestEnable} – controls whether stencil testing is enabled.
  • *
  • {@code front} – {@code front} and {@code back} control the parameters of the stencil test.
  • *
  • {@code back} – see {@code front}
  • *
  • {@code minDepthBounds} – {@code minDepthBounds} and {@code maxDepthBounds} define the range of values used in the depth bounds test.
  • *
  • {@code maxDepthBounds} – see {@code minDepthBounds}
  • *
* *

Layout

* *
 * struct VkPipelineDepthStencilStateCreateInfo {
 *     VkStructureType sType;
 *     const void * pNext;
 *     VkPipelineDepthStencilStateCreateFlags flags;
 *     VkBool32 depthTestEnable;
 *     VkBool32 depthWriteEnable;
 *     VkCompareOp depthCompareOp;
 *     VkBool32 depthBoundsTestEnable;
 *     VkBool32 stencilTestEnable;
 *     {@link VkStencilOpState VkStencilOpState} front;
 *     {@link VkStencilOpState VkStencilOpState} back;
 *     float minDepthBounds;
 *     float maxDepthBounds;
 * }
*/ public class VkPipelineDepthStencilStateCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; public static final int ALIGNOF; /** The struct member offsets. */ public static final int STYPE, PNEXT, FLAGS, DEPTHTESTENABLE, DEPTHWRITEENABLE, DEPTHCOMPAREOP, DEPTHBOUNDSTESTENABLE, STENCILTESTENABLE, FRONT, BACK, MINDEPTHBOUNDS, MAXDEPTHBOUNDS; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(4), __member(4), __member(4), __member(4), __member(4), __member(4), __member(VkStencilOpState.SIZEOF, VkStencilOpState.ALIGNOF), __member(VkStencilOpState.SIZEOF, VkStencilOpState.ALIGNOF), __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); STYPE = layout.offsetof(0); PNEXT = layout.offsetof(1); FLAGS = layout.offsetof(2); DEPTHTESTENABLE = layout.offsetof(3); DEPTHWRITEENABLE = layout.offsetof(4); DEPTHCOMPAREOP = layout.offsetof(5); DEPTHBOUNDSTESTENABLE = layout.offsetof(6); STENCILTESTENABLE = layout.offsetof(7); FRONT = layout.offsetof(8); BACK = layout.offsetof(9); MINDEPTHBOUNDS = layout.offsetof(10); MAXDEPTHBOUNDS = layout.offsetof(11); } VkPipelineDepthStencilStateCreateInfo(long address, ByteBuffer container) { super(address, container); } /** * Creates a {@link VkPipelineDepthStencilStateCreateInfo} 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 VkPipelineDepthStencilStateCreateInfo(ByteBuffer container) { this(memAddress(container), checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code sType} field. */ @NativeType("VkStructureType") public int sType() { return nsType(address()); } /** Returns the value of the {@code pNext} field. */ @NativeType("const void *") public long pNext() { return npNext(address()); } /** Returns the value of the {@code flags} field. */ @NativeType("VkPipelineDepthStencilStateCreateFlags") public int flags() { return nflags(address()); } /** Returns the value of the {@code depthTestEnable} field. */ @NativeType("VkBool32") public boolean depthTestEnable() { return ndepthTestEnable(address()) != 0; } /** Returns the value of the {@code depthWriteEnable} field. */ @NativeType("VkBool32") public boolean depthWriteEnable() { return ndepthWriteEnable(address()) != 0; } /** Returns the value of the {@code depthCompareOp} field. */ @NativeType("VkCompareOp") public int depthCompareOp() { return ndepthCompareOp(address()); } /** Returns the value of the {@code depthBoundsTestEnable} field. */ @NativeType("VkBool32") public boolean depthBoundsTestEnable() { return ndepthBoundsTestEnable(address()) != 0; } /** Returns the value of the {@code stencilTestEnable} field. */ @NativeType("VkBool32") public boolean stencilTestEnable() { return nstencilTestEnable(address()) != 0; } /** Returns a {@link VkStencilOpState} view of the {@code front} field. */ public VkStencilOpState front() { return nfront(address()); } /** Returns a {@link VkStencilOpState} view of the {@code back} field. */ public VkStencilOpState back() { return nback(address()); } /** Returns the value of the {@code minDepthBounds} field. */ public float minDepthBounds() { return nminDepthBounds(address()); } /** Returns the value of the {@code maxDepthBounds} field. */ public float maxDepthBounds() { return nmaxDepthBounds(address()); } /** Sets the specified value to the {@code sType} field. */ public VkPipelineDepthStencilStateCreateInfo sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkPipelineDepthStencilStateCreateInfo pNext(@NativeType("const void *") long value) { npNext(address(), value); return this; } /** Sets the specified value to the {@code flags} field. */ public VkPipelineDepthStencilStateCreateInfo flags(@NativeType("VkPipelineDepthStencilStateCreateFlags") int value) { nflags(address(), value); return this; } /** Sets the specified value to the {@code depthTestEnable} field. */ public VkPipelineDepthStencilStateCreateInfo depthTestEnable(@NativeType("VkBool32") boolean value) { ndepthTestEnable(address(), value ? 1 : 0); return this; } /** Sets the specified value to the {@code depthWriteEnable} field. */ public VkPipelineDepthStencilStateCreateInfo depthWriteEnable(@NativeType("VkBool32") boolean value) { ndepthWriteEnable(address(), value ? 1 : 0); return this; } /** Sets the specified value to the {@code depthCompareOp} field. */ public VkPipelineDepthStencilStateCreateInfo depthCompareOp(@NativeType("VkCompareOp") int value) { ndepthCompareOp(address(), value); return this; } /** Sets the specified value to the {@code depthBoundsTestEnable} field. */ public VkPipelineDepthStencilStateCreateInfo depthBoundsTestEnable(@NativeType("VkBool32") boolean value) { ndepthBoundsTestEnable(address(), value ? 1 : 0); return this; } /** Sets the specified value to the {@code stencilTestEnable} field. */ public VkPipelineDepthStencilStateCreateInfo stencilTestEnable(@NativeType("VkBool32") boolean value) { nstencilTestEnable(address(), value ? 1 : 0); return this; } /** Copies the specified {@link VkStencilOpState} to the {@code front} field. */ public VkPipelineDepthStencilStateCreateInfo front(VkStencilOpState value) { nfront(address(), value); return this; } /** Copies the specified {@link VkStencilOpState} to the {@code back} field. */ public VkPipelineDepthStencilStateCreateInfo back(VkStencilOpState value) { nback(address(), value); return this; } /** Sets the specified value to the {@code minDepthBounds} field. */ public VkPipelineDepthStencilStateCreateInfo minDepthBounds(float value) { nminDepthBounds(address(), value); return this; } /** Sets the specified value to the {@code maxDepthBounds} field. */ public VkPipelineDepthStencilStateCreateInfo maxDepthBounds(float value) { nmaxDepthBounds(address(), value); return this; } /** Initializes this struct with the specified values. */ public VkPipelineDepthStencilStateCreateInfo set( int sType, long pNext, int flags, boolean depthTestEnable, boolean depthWriteEnable, int depthCompareOp, boolean depthBoundsTestEnable, boolean stencilTestEnable, VkStencilOpState front, VkStencilOpState back, float minDepthBounds, float maxDepthBounds ) { sType(sType); pNext(pNext); flags(flags); depthTestEnable(depthTestEnable); depthWriteEnable(depthWriteEnable); depthCompareOp(depthCompareOp); depthBoundsTestEnable(depthBoundsTestEnable); stencilTestEnable(stencilTestEnable); front(front); back(back); minDepthBounds(minDepthBounds); maxDepthBounds(maxDepthBounds); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkPipelineDepthStencilStateCreateInfo set(VkPipelineDepthStencilStateCreateInfo src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@link VkPipelineDepthStencilStateCreateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkPipelineDepthStencilStateCreateInfo malloc() { return create(nmemAlloc(SIZEOF)); } /** Returns a new {@link VkPipelineDepthStencilStateCreateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkPipelineDepthStencilStateCreateInfo calloc() { return create(nmemCalloc(1, SIZEOF)); } /** Returns a new {@link VkPipelineDepthStencilStateCreateInfo} instance allocated with {@link BufferUtils}. */ public static VkPipelineDepthStencilStateCreateInfo create() { return new VkPipelineDepthStencilStateCreateInfo(BufferUtils.createByteBuffer(SIZEOF)); } /** Returns a new {@link VkPipelineDepthStencilStateCreateInfo} instance for the specified memory address or {@code null} if the address is {@code NULL}. */ public static VkPipelineDepthStencilStateCreateInfo create(long address) { return address == NULL ? null : new VkPipelineDepthStencilStateCreateInfo(address, null); } /** * Returns a new {@link VkPipelineDepthStencilStateCreateInfo.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static Buffer malloc(int capacity) { return create(__malloc(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkPipelineDepthStencilStateCreateInfo.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static Buffer calloc(int capacity) { return create(nmemCalloc(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkPipelineDepthStencilStateCreateInfo.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static Buffer create(int capacity) { return new Buffer(__create(capacity, SIZEOF)); } /** * Create a {@link VkPipelineDepthStencilStateCreateInfo.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static Buffer create(long address, int capacity) { return address == NULL ? null : new Buffer(address, null, -1, 0, capacity, capacity); } // ----------------------------------- /** Returns a new {@link VkPipelineDepthStencilStateCreateInfo} instance allocated on the thread-local {@link MemoryStack}. */ public static VkPipelineDepthStencilStateCreateInfo mallocStack() { return mallocStack(stackGet()); } /** Returns a new {@link VkPipelineDepthStencilStateCreateInfo} instance allocated on the thread-local {@link MemoryStack} and initializes all its bits to zero. */ public static VkPipelineDepthStencilStateCreateInfo callocStack() { return callocStack(stackGet()); } /** * Returns a new {@link VkPipelineDepthStencilStateCreateInfo} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkPipelineDepthStencilStateCreateInfo mallocStack(MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@link VkPipelineDepthStencilStateCreateInfo} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkPipelineDepthStencilStateCreateInfo callocStack(MemoryStack stack) { return create(stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkPipelineDepthStencilStateCreateInfo.Buffer} instance allocated on the thread-local {@link MemoryStack}. * * @param capacity the buffer capacity */ public static Buffer mallocStack(int capacity) { return mallocStack(capacity, stackGet()); } /** * Returns a new {@link VkPipelineDepthStencilStateCreateInfo.Buffer} instance allocated on the thread-local {@link MemoryStack} and initializes all its bits to zero. * * @param capacity the buffer capacity */ public static Buffer callocStack(int capacity) { return callocStack(capacity, stackGet()); } /** * Returns a new {@link VkPipelineDepthStencilStateCreateInfo.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static Buffer mallocStack(int capacity, MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link VkPipelineDepthStencilStateCreateInfo.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 Buffer callocStack(int capacity, MemoryStack stack) { return create(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } // ----------------------------------- /** Unsafe version of {@link #sType}. */ public static int nsType(long struct) { return memGetInt(struct + VkPipelineDepthStencilStateCreateInfo.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkPipelineDepthStencilStateCreateInfo.PNEXT); } /** Unsafe version of {@link #flags}. */ public static int nflags(long struct) { return memGetInt(struct + VkPipelineDepthStencilStateCreateInfo.FLAGS); } /** Unsafe version of {@link #depthTestEnable}. */ public static int ndepthTestEnable(long struct) { return memGetInt(struct + VkPipelineDepthStencilStateCreateInfo.DEPTHTESTENABLE); } /** Unsafe version of {@link #depthWriteEnable}. */ public static int ndepthWriteEnable(long struct) { return memGetInt(struct + VkPipelineDepthStencilStateCreateInfo.DEPTHWRITEENABLE); } /** Unsafe version of {@link #depthCompareOp}. */ public static int ndepthCompareOp(long struct) { return memGetInt(struct + VkPipelineDepthStencilStateCreateInfo.DEPTHCOMPAREOP); } /** Unsafe version of {@link #depthBoundsTestEnable}. */ public static int ndepthBoundsTestEnable(long struct) { return memGetInt(struct + VkPipelineDepthStencilStateCreateInfo.DEPTHBOUNDSTESTENABLE); } /** Unsafe version of {@link #stencilTestEnable}. */ public static int nstencilTestEnable(long struct) { return memGetInt(struct + VkPipelineDepthStencilStateCreateInfo.STENCILTESTENABLE); } /** Unsafe version of {@link #front}. */ public static VkStencilOpState nfront(long struct) { return VkStencilOpState.create(struct + VkPipelineDepthStencilStateCreateInfo.FRONT); } /** Unsafe version of {@link #back}. */ public static VkStencilOpState nback(long struct) { return VkStencilOpState.create(struct + VkPipelineDepthStencilStateCreateInfo.BACK); } /** Unsafe version of {@link #minDepthBounds}. */ public static float nminDepthBounds(long struct) { return memGetFloat(struct + VkPipelineDepthStencilStateCreateInfo.MINDEPTHBOUNDS); } /** Unsafe version of {@link #maxDepthBounds}. */ public static float nmaxDepthBounds(long struct) { return memGetFloat(struct + VkPipelineDepthStencilStateCreateInfo.MAXDEPTHBOUNDS); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { memPutInt(struct + VkPipelineDepthStencilStateCreateInfo.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkPipelineDepthStencilStateCreateInfo.PNEXT, value); } /** Unsafe version of {@link #flags(int) flags}. */ public static void nflags(long struct, int value) { memPutInt(struct + VkPipelineDepthStencilStateCreateInfo.FLAGS, value); } /** Unsafe version of {@link #depthTestEnable(boolean) depthTestEnable}. */ public static void ndepthTestEnable(long struct, int value) { memPutInt(struct + VkPipelineDepthStencilStateCreateInfo.DEPTHTESTENABLE, value); } /** Unsafe version of {@link #depthWriteEnable(boolean) depthWriteEnable}. */ public static void ndepthWriteEnable(long struct, int value) { memPutInt(struct + VkPipelineDepthStencilStateCreateInfo.DEPTHWRITEENABLE, value); } /** Unsafe version of {@link #depthCompareOp(int) depthCompareOp}. */ public static void ndepthCompareOp(long struct, int value) { memPutInt(struct + VkPipelineDepthStencilStateCreateInfo.DEPTHCOMPAREOP, value); } /** Unsafe version of {@link #depthBoundsTestEnable(boolean) depthBoundsTestEnable}. */ public static void ndepthBoundsTestEnable(long struct, int value) { memPutInt(struct + VkPipelineDepthStencilStateCreateInfo.DEPTHBOUNDSTESTENABLE, value); } /** Unsafe version of {@link #stencilTestEnable(boolean) stencilTestEnable}. */ public static void nstencilTestEnable(long struct, int value) { memPutInt(struct + VkPipelineDepthStencilStateCreateInfo.STENCILTESTENABLE, value); } /** Unsafe version of {@link #front(VkStencilOpState) front}. */ public static void nfront(long struct, VkStencilOpState value) { memCopy(value.address(), struct + VkPipelineDepthStencilStateCreateInfo.FRONT, VkStencilOpState.SIZEOF); } /** Unsafe version of {@link #back(VkStencilOpState) back}. */ public static void nback(long struct, VkStencilOpState value) { memCopy(value.address(), struct + VkPipelineDepthStencilStateCreateInfo.BACK, VkStencilOpState.SIZEOF); } /** Unsafe version of {@link #minDepthBounds(float) minDepthBounds}. */ public static void nminDepthBounds(long struct, float value) { memPutFloat(struct + VkPipelineDepthStencilStateCreateInfo.MINDEPTHBOUNDS, value); } /** Unsafe version of {@link #maxDepthBounds(float) maxDepthBounds}. */ public static void nmaxDepthBounds(long struct, float value) { memPutFloat(struct + VkPipelineDepthStencilStateCreateInfo.MAXDEPTHBOUNDS, value); } // ----------------------------------- /** An array of {@link VkPipelineDepthStencilStateCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { /** * Creates a new {@link VkPipelineDepthStencilStateCreateInfo.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 VkPipelineDepthStencilStateCreateInfo#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); } Buffer(long address, 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 Buffer newBufferInstance(long address, ByteBuffer container, int mark, int pos, int lim, int cap) { return new Buffer(address, container, mark, pos, lim, cap); } @Override protected VkPipelineDepthStencilStateCreateInfo newInstance(long address) { return new VkPipelineDepthStencilStateCreateInfo(address, container); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code sType} field. */ @NativeType("VkStructureType") public int sType() { return VkPipelineDepthStencilStateCreateInfo.nsType(address()); } /** Returns the value of the {@code pNext} field. */ @NativeType("const void *") public long pNext() { return VkPipelineDepthStencilStateCreateInfo.npNext(address()); } /** Returns the value of the {@code flags} field. */ @NativeType("VkPipelineDepthStencilStateCreateFlags") public int flags() { return VkPipelineDepthStencilStateCreateInfo.nflags(address()); } /** Returns the value of the {@code depthTestEnable} field. */ @NativeType("VkBool32") public boolean depthTestEnable() { return VkPipelineDepthStencilStateCreateInfo.ndepthTestEnable(address()) != 0; } /** Returns the value of the {@code depthWriteEnable} field. */ @NativeType("VkBool32") public boolean depthWriteEnable() { return VkPipelineDepthStencilStateCreateInfo.ndepthWriteEnable(address()) != 0; } /** Returns the value of the {@code depthCompareOp} field. */ @NativeType("VkCompareOp") public int depthCompareOp() { return VkPipelineDepthStencilStateCreateInfo.ndepthCompareOp(address()); } /** Returns the value of the {@code depthBoundsTestEnable} field. */ @NativeType("VkBool32") public boolean depthBoundsTestEnable() { return VkPipelineDepthStencilStateCreateInfo.ndepthBoundsTestEnable(address()) != 0; } /** Returns the value of the {@code stencilTestEnable} field. */ @NativeType("VkBool32") public boolean stencilTestEnable() { return VkPipelineDepthStencilStateCreateInfo.nstencilTestEnable(address()) != 0; } /** Returns a {@link VkStencilOpState} view of the {@code front} field. */ public VkStencilOpState front() { return VkPipelineDepthStencilStateCreateInfo.nfront(address()); } /** Returns a {@link VkStencilOpState} view of the {@code back} field. */ public VkStencilOpState back() { return VkPipelineDepthStencilStateCreateInfo.nback(address()); } /** Returns the value of the {@code minDepthBounds} field. */ public float minDepthBounds() { return VkPipelineDepthStencilStateCreateInfo.nminDepthBounds(address()); } /** Returns the value of the {@code maxDepthBounds} field. */ public float maxDepthBounds() { return VkPipelineDepthStencilStateCreateInfo.nmaxDepthBounds(address()); } /** Sets the specified value to the {@code sType} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer sType(@NativeType("VkStructureType") int value) { VkPipelineDepthStencilStateCreateInfo.nsType(address(), value); return this; } /** Sets the specified value to the {@code pNext} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer pNext(@NativeType("const void *") long value) { VkPipelineDepthStencilStateCreateInfo.npNext(address(), value); return this; } /** Sets the specified value to the {@code flags} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer flags(@NativeType("VkPipelineDepthStencilStateCreateFlags") int value) { VkPipelineDepthStencilStateCreateInfo.nflags(address(), value); return this; } /** Sets the specified value to the {@code depthTestEnable} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer depthTestEnable(@NativeType("VkBool32") boolean value) { VkPipelineDepthStencilStateCreateInfo.ndepthTestEnable(address(), value ? 1 : 0); return this; } /** Sets the specified value to the {@code depthWriteEnable} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer depthWriteEnable(@NativeType("VkBool32") boolean value) { VkPipelineDepthStencilStateCreateInfo.ndepthWriteEnable(address(), value ? 1 : 0); return this; } /** Sets the specified value to the {@code depthCompareOp} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer depthCompareOp(@NativeType("VkCompareOp") int value) { VkPipelineDepthStencilStateCreateInfo.ndepthCompareOp(address(), value); return this; } /** Sets the specified value to the {@code depthBoundsTestEnable} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer depthBoundsTestEnable(@NativeType("VkBool32") boolean value) { VkPipelineDepthStencilStateCreateInfo.ndepthBoundsTestEnable(address(), value ? 1 : 0); return this; } /** Sets the specified value to the {@code stencilTestEnable} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer stencilTestEnable(@NativeType("VkBool32") boolean value) { VkPipelineDepthStencilStateCreateInfo.nstencilTestEnable(address(), value ? 1 : 0); return this; } /** Copies the specified {@link VkStencilOpState} to the {@code front} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer front(VkStencilOpState value) { VkPipelineDepthStencilStateCreateInfo.nfront(address(), value); return this; } /** Copies the specified {@link VkStencilOpState} to the {@code back} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer back(VkStencilOpState value) { VkPipelineDepthStencilStateCreateInfo.nback(address(), value); return this; } /** Sets the specified value to the {@code minDepthBounds} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer minDepthBounds(float value) { VkPipelineDepthStencilStateCreateInfo.nminDepthBounds(address(), value); return this; } /** Sets the specified value to the {@code maxDepthBounds} field. */ public VkPipelineDepthStencilStateCreateInfo.Buffer maxDepthBounds(float value) { VkPipelineDepthStencilStateCreateInfo.nmaxDepthBounds(address(), value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy