Package icyllis.arc3d.opengl
Class GLResourceProvider
java.lang.Object
icyllis.arc3d.engine.ResourceProvider
icyllis.arc3d.opengl.GLResourceProvider
Provides OpenGL objects with cache.
-
Field Summary
Fields inherited from class icyllis.arc3d.engine.ResourceProvider
mContext, mResourceCache
-
Method Summary
Modifier and TypeMethodDescriptionprotected @SharedPtr GLGraphicsPipeline
createGraphicsPipeline
(PipelineDesc pipelineDesc, RenderPassDesc renderPassDesc) protected @SharedPtr Sampler
createSampler
(SamplerDesc desc) protected @SharedPtr GLBuffer
onCreateNewBuffer
(long size, int usage) protected @SharedPtr GLImage
onCreateNewImage
(ImageDesc desc, boolean budgeted) Overridden by backend-specific derived class to create objects.Methods inherited from class icyllis.arc3d.engine.ResourceProvider
assignUniqueKeyToResource, createImage, createNewBuffer, createNewImage, createRenderTarget, createRenderTarget, createRenderTarget, createTexture, destroy, findAndRefScratchImage, findAndRefScratchImage, findAndRefScratchRenderTarget, findAndRefScratchRenderTarget, findOrCreateBuffer, findOrCreateCompatibleSampler, findOrCreateGraphicsPipeline, findOrCreateImage, freeGpuResources, getResourceCache, getResourceCacheBudgetedBytes, getResourceCacheLimit, getResourceCachePurgeableBytes, purgeResourcesNotUsedSince, wrapBackendRenderTarget, wrapGLDefaultFramebuffer, wrapRenderableBackendTexture
-
Method Details
-
createGraphicsPipeline
@SharedPtr protected @SharedPtr GLGraphicsPipeline createGraphicsPipeline(PipelineDesc pipelineDesc, RenderPassDesc renderPassDesc) - Overrides:
createGraphicsPipeline
in classResourceProvider
-
onCreateNewImage
@Nullable @SharedPtr protected @SharedPtr GLImage onCreateNewImage(ImageDesc desc, boolean budgeted) Description copied from class:ResourceProvider
Overridden by backend-specific derived class to create objects.Image size and format support will have already been validated in base class before onCreateImage is called.
- Specified by:
onCreateNewImage
in classResourceProvider
-
onCreateNewBuffer
- Specified by:
onCreateNewBuffer
in classResourceProvider
-
createSampler
- Specified by:
createSampler
in classResourceProvider
-