Package icyllis.arc3d.core
Class SurfaceCharacterization
java.lang.Object
icyllis.arc3d.core.SurfaceCharacterization
A surface characterization contains all the information Engine requires to make its internal
rendering decisions. When passed into a
DisplayListRecorder
it will copy the
data and pass it on to the DisplayList
if/when it is created. Note that both of
those objects (the Recorder and the DisplayList) will take a ref on the
SharedContext
object.-
Constructor Summary
ConstructorDescriptionSurfaceCharacterization
(SharedContext contextInfo, long cacheMaxResourceBytes, ImageInfo imageInfo, BackendFormat backendFormat, int origin, int sampleCount, boolean texturable, boolean mipmapped, boolean glWrapDefaultFramebuffer, boolean vkSupportInputAttachment, boolean vkSecondaryCommandBuffer, boolean isProtected) -
Method Summary
Modifier and TypeMethodDescriptioncreateBackendFormat
(int colorType, BackendFormat backendFormat) Return a new surface characterization with the backend format replaced.createDefaultFramebuffer
(boolean useDefaultFramebuffer) Return a new surface characterization with just a different use of FBO 0 (in GL).createResized
(int width, int height) Return a new surface characterization with the only difference being a different width and heightboolean
long
int
int
int
int
int
getWidth()
boolean
int
hashCode()
boolean
isCompatible
(BackendImage texture) Is the provided backend texture compatible with this surface characterization?boolean
boolean
boolean
boolean
boolean
-
Constructor Details
-
Method Details
-
createResized
Return a new surface characterization with the only difference being a different width and height -
createBackendFormat
@Nullable public SurfaceCharacterization createBackendFormat(int colorType, BackendFormat backendFormat) Return a new surface characterization with the backend format replaced. A colorType must also be supplied to indicate the interpretation of the new format. -
createDefaultFramebuffer
Return a new surface characterization with just a different use of FBO 0 (in GL). -
getContextInfo
-
getCacheMaxResourceBytes
public long getCacheMaxResourceBytes() -
getImageInfo
-
getBackendFormat
-
getOrigin
public int getOrigin() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getColorType
public int getColorType() -
getSampleCount
public int getSampleCount() -
isTexturable
public boolean isTexturable() -
isMipmapped
public boolean isMipmapped() -
glWrapDefaultFramebuffer
public boolean glWrapDefaultFramebuffer() -
vkSupportInputAttachment
public boolean vkSupportInputAttachment() -
vkSecondaryCommandBuffer
public boolean vkSecondaryCommandBuffer() -
isProtected
public boolean isProtected() -
isCompatible
Is the provided backend texture compatible with this surface characterization? -
equals
-
hashCode
public int hashCode()
-