Lines Matching refs:ContextMtl
6 // ContextMtl.mm:
7 // Implements the class methods for ContextMtl.
10 #include "libANGLE/renderer/metal/ContextMtl.h"
66 angle::Result AllocateTriangleFanBufferFromPool(ContextMtl *context,
87 angle::Result AllocateBufferFromPool(ContextMtl *context,
182 ContextMtl *mContextMtl = nullptr;
188 ContextMtl::ContextMtl(const gl::State &state, gl::ErrorSet *errorSet, DisplayMtl *display)
197 ContextMtl::~ContextMtl() {}
199 angle::Result ContextMtl::initialize()
221 void ContextMtl::onDestroy(const gl::Context *context)
234 angle::Result ContextMtl::ensureIncompleteTexturesCreated(const gl::Context *context)
258 angle::Result ContextMtl::flush(const gl::Context *context)
263 angle::Result ContextMtl::finish(const gl::Context *context)
270 angle::Result ContextMtl::drawTriFanArraysWithBaseVertex(const gl::Context *context,
306 angle::Result ContextMtl::drawTriFanArraysLegacy(const gl::Context *context,
334 angle::Result ContextMtl::drawTriFanArrays(const gl::Context *context,
350 angle::Result ContextMtl::drawLineLoopArraysNonInstanced(const gl::Context *context,
364 angle::Result ContextMtl::drawLineLoopArrays(const gl::Context *context,
398 angle::Result ContextMtl::drawArraysImpl(const gl::Context *context,
442 angle::Result ContextMtl::drawArrays(const gl::Context *context,
450 angle::Result ContextMtl::drawArraysInstanced(const gl::Context *context,
463 angle::Result ContextMtl::drawArraysInstancedBaseInstance(const gl::Context *context,
474 angle::Result ContextMtl::drawTriFanElements(const gl::Context *context,
508 angle::Result ContextMtl::drawLineLoopElementsNonInstancedNoPrimitiveRestart(
523 angle::Result ContextMtl::drawLineLoopElements(const gl::Context *context,
565 angle::Result ContextMtl::drawElementsImpl(const gl::Context *context,
620 angle::Result ContextMtl::drawElements(const gl::Context *context,
629 angle::Result ContextMtl::drawElementsBaseVertex(const gl::Context *context,
640 angle::Result ContextMtl::drawElementsInstanced(const gl::Context *context,
654 angle::Result ContextMtl::drawElementsInstancedBaseVertex(const gl::Context *context,
667 angle::Result ContextMtl::drawElementsInstancedBaseVertexBaseInstance(const gl::Context *context,
680 angle::Result ContextMtl::drawRangeElements(const gl::Context *context,
691 angle::Result ContextMtl::drawRangeElementsBaseVertex(const gl::Context *context,
705 angle::Result ContextMtl::drawArraysIndirect(const gl::Context *context,
713 angle::Result ContextMtl::drawElementsIndirect(const gl::Context *context,
723 angle::Result ContextMtl::multiDrawArrays(const gl::Context *context,
732 angle::Result ContextMtl::multiDrawArraysInstanced(const gl::Context *context,
743 angle::Result ContextMtl::multiDrawElements(const gl::Context *context,
753 angle::Result ContextMtl::multiDrawElementsInstanced(const gl::Context *context,
765 angle::Result ContextMtl::multiDrawArraysInstancedBaseInstance(const gl::Context *context,
777 angle::Result ContextMtl::multiDrawElementsInstancedBaseVertexBaseInstance(
794 gl::GraphicsResetStatus ContextMtl::getResetStatus()
800 angle::Result ContextMtl::insertEventMarker(GLsizei length, const char *marker)
805 angle::Result ContextMtl::pushGroupMarker(GLsizei length, const char *marker)
811 angle::Result ContextMtl::popGroupMarker()
818 angle::Result ContextMtl::pushDebugGroup(const gl::Context *context,
826 angle::Result ContextMtl::popDebugGroup(const gl::Context *context)
832 angle::Result ContextMtl::syncState(const gl::Context *context,
1072 void ContextMtl::updateExtendedState(const gl::State &glState)
1080 GLint ContextMtl::getGPUDisjoint()
1085 GLint64 ContextMtl::getTimestamp()
1092 angle::Result ContextMtl::onMakeCurrent(const gl::Context *context)
1097 angle::Result ContextMtl::onUnMakeCurrent(const gl::Context *context)
1104 gl::Caps ContextMtl::getNativeCaps() const
1108 const gl::TextureCapsMap &ContextMtl::getNativeTextureCaps() const
1112 const gl::Extensions &ContextMtl::getNativeExtensions() const
1116 const gl::Limitations &ContextMtl::getNativeLimitations() const
1122 CompilerImpl *ContextMtl::createCompiler()
1126 ShaderImpl *ContextMtl::createShader(const gl::ShaderState &state)
1130 ProgramImpl *ContextMtl::createProgram(const gl::ProgramState &state)
1136 FramebufferImpl *ContextMtl::createFramebuffer(const gl::FramebufferState &state)
1142 TextureImpl *ContextMtl::createTexture(const gl::TextureState &state)
1148 RenderbufferImpl *ContextMtl::createRenderbuffer(const gl::RenderbufferState &state)
1154 BufferImpl *ContextMtl::createBuffer(const gl::BufferState &state)
1160 VertexArrayImpl *ContextMtl::createVertexArray(const gl::VertexArrayState &state)
1166 QueryImpl *ContextMtl::createQuery(gl::QueryType type)
1170 FenceNVImpl *ContextMtl::createFenceNV()
1174 SyncImpl *ContextMtl::createSync()
1180 TransformFeedbackImpl *ContextMtl::createTransformFeedback(const gl::TransformFeedbackState &state)
1187 SamplerImpl *ContextMtl::createSampler(const gl::SamplerState &state)
1193 ProgramPipelineImpl *ContextMtl::createProgramPipeline(const gl::ProgramPipelineState &data)
1201 MemoryObjectImpl *ContextMtl::createMemoryObject()
1208 SemaphoreImpl *ContextMtl::createSemaphore()
1214 OverlayImpl *ContextMtl::createOverlay(const gl::OverlayState &state)
1220 angle::Result ContextMtl::dispatchCompute(const gl::Context *context,
1229 angle::Result ContextMtl::dispatchComputeIndirect(const gl::Context *context, GLintptr indirect)
1236 angle::Result ContextMtl::memoryBarrier(const gl::Context *context, GLbitfield barriers)
1242 angle::Result ContextMtl::memoryBarrierByRegion(const gl::Context *context, GLbitfield barriers)
1250 void ContextMtl::handleError(GLenum glErrorCode,
1261 void ContextMtl::handleError(NSError *nserror,
1278 void ContextMtl::invalidateState(const gl::Context *context)
1285 void ContextMtl::invalidateDefaultAttribute(size_t attribIndex)
1291 void ContextMtl::invalidateDefaultAttributes(const gl::AttributesMask &dirtyMask)
1300 void ContextMtl::invalidateCurrentTextures()
1305 void ContextMtl::invalidateDriverUniforms()
1310 void ContextMtl::invalidateRenderPipeline()
1315 const mtl::ClearColorValue &ContextMtl::getClearColorValue() const
1319 const mtl::WriteMaskArray &ContextMtl::getWriteMaskArray() const
1323 float ContextMtl::getClearDepthValue() const
1327 uint32_t ContextMtl::getClearStencilValue() const
1331 uint32_t ContextMtl::getStencilMask() const
1336 bool ContextMtl::getDepthMask() const
1341 const mtl::Format &ContextMtl::getPixelFormat(angle::FormatID angleFormatId) const
1347 const mtl::VertexFormat &ContextMtl::getVertexFormat(angle::FormatID angleFormatId,
1353 const mtl::FormatCaps &ContextMtl::getNativeFormatCaps(MTLPixelFormat mtlFormat) const
1358 angle::Result ContextMtl::getIncompleteTexture(const gl::Context *context,
1366 void ContextMtl::endRenderEncoding(mtl::RenderCommandEncoder *encoder)
1380 void ContextMtl::endEncoding(bool forceSaveRenderPassContent)
1404 void ContextMtl::flushCommandBufer()
1415 void ContextMtl::present(const gl::Context *context, id<CAMetalDrawable> presentationDrawable)
1430 angle::Result ContextMtl::finishCommandBuffer()
1439 bool ContextMtl::hasStartedRenderPass(const mtl::RenderPassDesc &desc)
1446 mtl::RenderCommandEncoder *ContextMtl::getRenderCommandEncoder()
1456 mtl::RenderCommandEncoder *ContextMtl::getRenderPassCommandEncoder(const mtl::RenderPassDesc &desc)
1497 mtl::RenderCommandEncoder *ContextMtl::getTextureRenderCommandEncoder(
1515 mtl::RenderCommandEncoder *ContextMtl::getRenderTargetCommandEncoderWithClear(
1538 mtl::RenderCommandEncoder *ContextMtl::getRenderTargetCommandEncoder(
1544 mtl::BlitCommandEncoder *ContextMtl::getBlitCommandEncoder()
1558 mtl::ComputeCommandEncoder *ContextMtl::getComputeCommandEncoder()
1572 void ContextMtl::ensureCommandBufferReady()
1582 void ContextMtl::updateViewport(FramebufferMtl *framebufferMtl,
1594 void ContextMtl::updateDepthRange(float nearPlane, float farPlane)
1609 void ContextMtl::updateBlendDescArray(const gl::BlendStateExt &blendStateExt)
1640 void ContextMtl::updateScissor(const gl::State &glState)
1668 void ContextMtl::updateCullMode(const gl::State &glState)
1699 void ContextMtl::updateFrontFace(const gl::State &glState)
1707 void ContextMtl::updateDepthBias(const gl::State &glState)
1712 void ContextMtl::updateDrawFrameBufferBinding(const gl::Context *context)
1723 void ContextMtl::onDrawFrameBufferChangedState(const gl::Context *context,
1749 void ContextMtl::onBackbufferResized(const gl::Context *context, WindowSurfaceMtl *backbuffer)
1761 angle::Result ContextMtl::onOcclusionQueryBegin(const gl::Context *context, QueryMtl *query)
1778 void ContextMtl::onOcclusionQueryEnd(const gl::Context *context, QueryMtl *query)
1790 void ContextMtl::onOcclusionQueryDestroy(const gl::Context *context, QueryMtl *query)
1803 void ContextMtl::disableActiveOcclusionQueryInRenderPass()
1815 angle::Result ContextMtl::restartActiveOcclusionQueryInRenderPass()
1825 angle::Result ContextMtl::startOcclusionQueryInRenderPass(QueryMtl *query, bool clearOldValue)
1842 void ContextMtl::onTransformFeedbackActive(const gl::Context *context, TransformFeedbackMtl *xfb)
1849 void ContextMtl::onTransformFeedbackInactive(const gl::Context *context, TransformFeedbackMtl *xfb)
1856 void ContextMtl::queueEventSignal(const mtl::SharedEventRef &event, uint64_t value)
1862 void ContextMtl::serverWaitEvent(const mtl::SharedEventRef &event, uint64_t value)
1872 void ContextMtl::updateProgramExecutable(const gl::Context *context)
1882 void ContextMtl::updateVertexArray(const gl::Context *context)
1890 angle::Result ContextMtl::updateDefaultAttribute(size_t attribIndex)
1907 angle::Result ContextMtl::setupDraw(const gl::Context *context,
2052 void ContextMtl::filterOutXFBOnlyDirtyBits(const gl::Context *context)
2069 angle::Result ContextMtl::handleDirtyRenderPass(const gl::Context *context)
2104 angle::Result ContextMtl::handleDirtyActiveTextures(const gl::Context *context)
2132 angle::Result ContextMtl::handleDirtyDefaultAttribs(const gl::Context *context)
2146 angle::Result ContextMtl::handleDirtyDriverUniforms(const gl::Context *context,
2203 angle::Result ContextMtl::fillDriverXFBUniforms(GLint drawCallFirstVertex,
2224 angle::Result ContextMtl::handleDirtyDepthStencilState(const gl::Context *context)
2250 angle::Result ContextMtl::handleDirtyDepthBias(const gl::Context *context)
2267 angle::Result ContextMtl::checkIfPipelineChanged(const gl::Context *context,