Record Class WGPURenderPassDepthStencilAttachment
java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPURenderPassDepthStencilAttachment
- All Implemented Interfaces:
IPointer,IWGPURenderPassDepthStencilAttachment
@ValueBasedCandidate
@UnsafeConstructor
public record WGPURenderPassDepthStencilAttachment(@NotNull MemorySegment segment)
extends Record
implements IWGPURenderPassDepthStencilAttachment
Represents a pointer to a WGPURenderPassDepthStencilAttachment structure in native memory.
Structure
typedef struct WGPURenderPassDepthStencilAttachment {
WGPUTextureView view;
WGPULoadOp depthLoadOp;
WGPUStoreOp depthStoreOp;
float depthClearValue;
WGPUBool depthReadOnly;
WGPULoadOp stencilLoadOp;
WGPUStoreOp stencilStoreOp;
uint32_t stencilClearValue;
WGPUBool stencilReadOnly;
} WGPURenderPassDepthStencilAttachment;
Contracts
The property segment() should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to
LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java
null instead. See the documentation of IPointer.segment() for more details.
The constructor of this class is marked as UnsafeConstructor, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfFloatstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionWGPURenderPassDepthStencilAttachment(@NotNull MemorySegment segment) Creates an instance of aWGPURenderPassDepthStencilAttachmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, WGPURenderPassDepthStencilAttachment src) floatdepthClearValue(float value) intdepthLoadOp(int value) intdepthReadOnly(int value) intdepthStoreOp(int value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intstencilClearValue(int value) intstencilLoadOp(int value) intstencilReadOnly(int value) intstencilStoreOp(int value) final StringtoString()Returns a string representation of this record class.@Nullable WGPUTextureViewview()view(@Nullable WGPUTextureView value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$view
-
PATH$depthLoadOp
-
PATH$depthStoreOp
-
PATH$depthClearValue
-
PATH$depthReadOnly
-
PATH$stencilLoadOp
-
PATH$stencilStoreOp
-
PATH$stencilClearValue
-
PATH$stencilReadOnly
-
LAYOUT$view
-
LAYOUT$depthLoadOp
-
LAYOUT$depthStoreOp
-
LAYOUT$depthClearValue
-
LAYOUT$depthReadOnly
-
LAYOUT$stencilLoadOp
-
LAYOUT$stencilStoreOp
-
LAYOUT$stencilClearValue
-
LAYOUT$stencilReadOnly
-
SIZE$view
public static final long SIZE$view -
SIZE$depthLoadOp
public static final long SIZE$depthLoadOp -
SIZE$depthStoreOp
public static final long SIZE$depthStoreOp -
SIZE$depthClearValue
public static final long SIZE$depthClearValue -
SIZE$depthReadOnly
public static final long SIZE$depthReadOnly -
SIZE$stencilLoadOp
public static final long SIZE$stencilLoadOp -
SIZE$stencilStoreOp
public static final long SIZE$stencilStoreOp -
SIZE$stencilClearValue
public static final long SIZE$stencilClearValue -
SIZE$stencilReadOnly
public static final long SIZE$stencilReadOnly -
OFFSET$view
public static final long OFFSET$view -
OFFSET$depthLoadOp
public static final long OFFSET$depthLoadOp -
OFFSET$depthStoreOp
public static final long OFFSET$depthStoreOp -
OFFSET$depthClearValue
public static final long OFFSET$depthClearValue -
OFFSET$depthReadOnly
public static final long OFFSET$depthReadOnly -
OFFSET$stencilLoadOp
public static final long OFFSET$stencilLoadOp -
OFFSET$stencilStoreOp
public static final long OFFSET$stencilStoreOp -
OFFSET$stencilClearValue
public static final long OFFSET$stencilClearValue -
OFFSET$stencilReadOnly
public static final long OFFSET$stencilReadOnly
-
-
Constructor Details
-
WGPURenderPassDepthStencilAttachment
Creates an instance of aWGPURenderPassDepthStencilAttachmentrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static WGPURenderPassDepthStencilAttachment clone(Arena arena, WGPURenderPassDepthStencilAttachment src) -
view
-
view
-
depthLoadOp
-
depthLoadOp
-
depthStoreOp
-
depthStoreOp
-
depthClearValue
public float depthClearValue() -
depthClearValue
-
depthReadOnly
-
depthReadOnly
public WGPURenderPassDepthStencilAttachment depthReadOnly(@NativeType("WGPUBool") @Unsigned int value) -
stencilLoadOp
-
stencilLoadOp
-
stencilStoreOp
-
stencilStoreOp
-
stencilClearValue
-
stencilClearValue
-
stencilReadOnly
-
stencilReadOnly
public WGPURenderPassDepthStencilAttachment stencilReadOnly(@NativeType("WGPUBool") @Unsigned int value) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
segment
Returns the value of thesegmentrecord component.
-