Class CUlaunchAttributeValue.Buffer

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUlaunchAttributeValue.Buffer>
org.lwjgl.system.StructBuffer<CUlaunchAttributeValue,CUlaunchAttributeValue.Buffer>
org.lwjgl.cuda.CUlaunchAttributeValue.Buffer
All Implemented Interfaces:
AutoCloseable, Iterable<CUlaunchAttributeValue>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Enclosing class:
CUlaunchAttributeValue

public static class CUlaunchAttributeValue.Buffer extends org.lwjgl.system.StructBuffer<CUlaunchAttributeValue,CUlaunchAttributeValue.Buffer> implements org.lwjgl.system.NativeResource
An array of CUlaunchAttributeValue structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CUlaunchAttributeValue.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 CUlaunchAttributeValue.SIZEOF, and its mark will be undefined.

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

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • pad

      public ByteBuffer pad()
      Returns:
      a ByteBuffer view of the pad field.
    • pad

      public byte pad(int index)
      Returns:
      the value at the specified index of the pad field.
    • accessPolicyWindow

      public CUaccessPolicyWindow accessPolicyWindow()
      Returns:
      a CUaccessPolicyWindow view of the accessPolicyWindow field.
    • cooperative

      public int cooperative()
      Returns:
      the value of the cooperative field.
    • syncPolicy

      public int syncPolicy()
      Returns:
      the value of the syncPolicy field.
    • clusterDim_x

      public int clusterDim_x()
      Returns:
      the value of the clusterDim.x field.
    • clusterDim_y

      public int clusterDim_y()
      Returns:
      the value of the clusterDim.y field.
    • clusterDim_z

      public int clusterDim_z()
      Returns:
      the value of the clusterDim.z field.
    • clusterSchedulingPolicyPreference

      public int clusterSchedulingPolicyPreference()
      Returns:
      the value of the clusterSchedulingPolicyPreference field.
    • programmaticStreamSerializationAllowed

      public int programmaticStreamSerializationAllowed()
      Returns:
      the value of the programmaticStreamSerializationAllowed field.
    • programmaticEvent_event

      public long programmaticEvent_event()
      Returns:
      the value of the programmaticEvent.event field.
    • programmaticEvent_flags

      public int programmaticEvent_flags()
      Returns:
      the value of the programmaticEvent.flags field.
    • programmaticEvent_triggerAtBlockStart

      public int programmaticEvent_triggerAtBlockStart()
      Returns:
      the value of the programmaticEvent.triggerAtBlockStart field.
    • priority

      public int priority()
      Returns:
      the value of the priority field.
    • memSyncDomainMap

      public CUlaunchMemSyncDomainMap memSyncDomainMap()
      Returns:
      a CUlaunchMemSyncDomainMap view of the memSyncDomainMap field.
    • memSyncDomain

      public int memSyncDomain()
      Returns:
      the value of the memSyncDomain field.
    • pad

      Copies the specified ByteBuffer to the pad field.
    • pad

      public CUlaunchAttributeValue.Buffer pad(int index, byte value)
      Sets the specified value at the specified index of the pad field.
    • accessPolicyWindow

      public CUlaunchAttributeValue.Buffer accessPolicyWindow(CUaccessPolicyWindow value)
      Copies the specified CUaccessPolicyWindow to the accessPolicyWindow field.
    • accessPolicyWindow

      public CUlaunchAttributeValue.Buffer accessPolicyWindow(Consumer<CUaccessPolicyWindow> consumer)
      Passes the accessPolicyWindow field to the specified Consumer.
    • cooperative

      public CUlaunchAttributeValue.Buffer cooperative(int value)
      Sets the specified value to the cooperative field.
    • syncPolicy

      public CUlaunchAttributeValue.Buffer syncPolicy(int value)
      Sets the specified value to the syncPolicy field.
    • clusterDim_x

      public CUlaunchAttributeValue.Buffer clusterDim_x(int value)
      Sets the specified value to the x field.
    • clusterDim_y

      public CUlaunchAttributeValue.Buffer clusterDim_y(int value)
      Sets the specified value to the y field.
    • clusterDim_z

      public CUlaunchAttributeValue.Buffer clusterDim_z(int value)
      Sets the specified value to the z field.
    • clusterSchedulingPolicyPreference

      public CUlaunchAttributeValue.Buffer clusterSchedulingPolicyPreference(int value)
      Sets the specified value to the clusterSchedulingPolicyPreference field.
    • programmaticStreamSerializationAllowed

      public CUlaunchAttributeValue.Buffer programmaticStreamSerializationAllowed(int value)
      Sets the specified value to the programmaticStreamSerializationAllowed field.
    • programmaticEvent_event

      public CUlaunchAttributeValue.Buffer programmaticEvent_event(long value)
      Sets the specified value to the event field.
    • programmaticEvent_flags

      public CUlaunchAttributeValue.Buffer programmaticEvent_flags(int value)
      Sets the specified value to the flags field.
    • programmaticEvent_triggerAtBlockStart

      public CUlaunchAttributeValue.Buffer programmaticEvent_triggerAtBlockStart(int value)
      Sets the specified value to the triggerAtBlockStart field.
    • priority

      public CUlaunchAttributeValue.Buffer priority(int value)
      Sets the specified value to the priority field.
    • memSyncDomainMap

      Copies the specified CUlaunchMemSyncDomainMap to the memSyncDomainMap field.
    • memSyncDomainMap

      Passes the memSyncDomainMap field to the specified Consumer.
    • memSyncDomain

      public CUlaunchAttributeValue.Buffer memSyncDomain(int value)
      Sets the specified value to the memSyncDomain field.