Package icyllis.arc3d.engine
Class SharedResourceCache
java.lang.Object
icyllis.arc3d.engine.SharedResourceCache
Thread-safe class to get or create pipeline state objects (PSO) asynchronously.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStaticResource
(@SharedPtr Resource resource) getStats()
insertComputePipeline
(IUniqueKey key, @SharedPtr ComputePipeline pipeline) insertGraphicsPipeline
(IUniqueKey key, @SharedPtr GraphicsPipeline pipeline) void
release()
-
Field Details
-
mStats
-
-
Constructor Details
-
SharedResourceCache
public SharedResourceCache()
-
-
Method Details
-
release
public void release() -
findGraphicsPipeline
@Nullable @SharedPtr public @SharedPtr GraphicsPipeline findGraphicsPipeline(@Nonnull IUniqueKey key) -
insertGraphicsPipeline
@Nonnull @SharedPtr public @SharedPtr GraphicsPipeline insertGraphicsPipeline(@Nonnull IUniqueKey key, @Nonnull @SharedPtr @SharedPtr GraphicsPipeline pipeline) -
findComputePipeline
-
insertComputePipeline
@Nonnull @SharedPtr public @SharedPtr ComputePipeline insertComputePipeline(@Nonnull IUniqueKey key, @Nonnull @SharedPtr @SharedPtr ComputePipeline pipeline) -
addStaticResource
-
getStats
-