Package org.gnome.graphene
Class Simd4F
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.graphene.Simd4F
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorDescriptionSimd4F()
Allocate a new Simd4F.Simd4F
(float x, float y, float z, float w) Allocate a new Simd4F with the fields set to the provided values.Allocate a new Simd4F with the fields set to the provided values.Allocate a new Simd4F.Simd4F
(MemorySegment address) Create a Simd4F proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.float
readW()
Read the value of the fieldw
.float
readX()
Read the value of the fieldx
.float
readY()
Read the value of the fieldy
.float
readZ()
Read the value of the fieldz
.void
writeW
(float w) Write a value in the fieldw
.void
writeX
(float x) Write a value in the fieldx
.void
writeY
(float y) Write a value in the fieldy
.void
writeZ
(float z) Write a value in the fieldz
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Simd4F
Create a Simd4F proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
Simd4F
Allocate a new Simd4F.- Parameters:
arena
- to control the memory allocation scope
-
Simd4F
public Simd4F()Allocate a new Simd4F. The memory is allocated withArena.ofAuto()
. -
Simd4F
Allocate a new Simd4F with the fields set to the provided values.- Parameters:
x
- value for the fieldx
y
- value for the fieldy
z
- value for the fieldz
w
- value for the fieldw
arena
- to control the memory allocation scope
-
Simd4F
public Simd4F(float x, float y, float z, float w) Allocate a new Simd4F with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
x
- value for the fieldx
y
- value for the fieldy
z
- value for the fieldz
w
- value for the fieldw
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readX
public float readX()Read the value of the fieldx
.- Returns:
- The value of the field
x
-
writeX
public void writeX(float x) Write a value in the fieldx
.- Parameters:
x
- The new value for the fieldx
-
readY
public float readY()Read the value of the fieldy
.- Returns:
- The value of the field
y
-
writeY
public void writeY(float y) Write a value in the fieldy
.- Parameters:
y
- The new value for the fieldy
-
readZ
public float readZ()Read the value of the fieldz
.- Returns:
- The value of the field
z
-
writeZ
public void writeZ(float z) Write a value in the fieldz
.- Parameters:
z
- The new value for the fieldz
-
readW
public float readW()Read the value of the fieldw
.- Returns:
- The value of the field
w
-
writeW
public void writeW(float w) Write a value in the fieldw
.- Parameters:
w
- The new value for the fieldw
-