Class VulkanPushConstantRange
java.lang.Object
com.io7m.jcoronado.api.VulkanPushConstantRange
- All Implemented Interfaces:
VulkanPushConstantRangeType
Structure specifying a push constant range.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPushConstantRange. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanPushConstantRange.static VulkanPushConstantRangecopyOf(VulkanPushConstantRangeType instance) Creates an immutable copy of aVulkanPushConstantRangeTypevalue.booleanThis instance is equal to all instances ofVulkanPushConstantRangethat have equal attribute values.inthashCode()Computes a hash code from attributes:stageFlags,offset,size.intoffset()intsize()toString()Prints the immutable valueVulkanPushConstantRangewith attribute values.final VulkanPushConstantRangewithOffset(int value) Copy the current immutable object by setting a value for theoffsetattribute.final VulkanPushConstantRangewithSize(int value) Copy the current immutable object by setting a value for thesizeattribute.final VulkanPushConstantRangewithStageFlags(VulkanShaderStageFlag... elements) Copy the current immutable object with elements that replace the content ofstageFlags.final VulkanPushConstantRangewithStageFlags(Iterable<VulkanShaderStageFlag> elements) Copy the current immutable object with elements that replace the content ofstageFlags.
-
Method Details
-
stageFlags
- Specified by:
stageFlagsin interfaceVulkanPushConstantRangeType- Returns:
- The stages that will access the range of push constants
-
offset
public int offset()- Specified by:
offsetin interfaceVulkanPushConstantRangeType- Returns:
- The start of the range
-
size
public int size()- Specified by:
sizein interfaceVulkanPushConstantRangeType- Returns:
- The size of the range
-
withStageFlags
Copy the current immutable object with elements that replace the content ofstageFlags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withStageFlags
Copy the current immutable object with elements that replace the content ofstageFlags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of stageFlags elements to set- Returns:
- A modified copy or
thisif not changed
-
withOffset
Copy the current immutable object by setting a value for theoffsetattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for offset- Returns:
- A modified copy or the
thisobject
-
withSize
Copy the current immutable object by setting a value for thesizeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for size- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanPushConstantRangeTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanPushConstantRange instance
-
builder
Creates a builder forVulkanPushConstantRange.VulkanPushConstantRange.builder() .addStageFlags|addAllStageFlags(com.io7m.jcoronado.api.VulkanShaderStageFlag) //
stageFlagselements .setOffset(int) // optionaloffset.setSize(int) // optionalsize.build();- Returns:
- A new VulkanPushConstantRange builder
-