/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
D | RenderTargetMtl.h | 35 void set(const mtl::TextureRef &texture, 36 const mtl::MipmapNativeLevel &level, 38 const mtl::Format &format); 39 void setWithImplicitMSTexture(const mtl::TextureRef &texture, 40 const mtl::TextureRef &implicitMSTexture, 41 const mtl::MipmapNativeLevel &level, 43 const mtl::Format &format); 44 void setTexture(const mtl::TextureRef &texture); 45 void setImplicitMSTexture(const mtl::TextureRef &implicitMSTexture); 49 mtl::TextureRef getTexture() const { return mTexture.lock(); } in getTexture() [all …]
|
D | ProvokingVertexHelper.h | 24 class ProvokingVertexHelper : public mtl::ProvokingVertexCacheSpecializeShaderFactory 28 mtl::CommandQueue *commandQueue, 30 mtl::BufferRef preconditionIndexBuffer(ContextMtl *context, 31 mtl::BufferRef indexBuffer, 42 mtl::ComputeCommandEncoder *getComputeCommandEncoder(); 46 mtl::CommandBuffer mCommandBuffer; 47 mtl::BufferPool mIndexBuffers; 48 mtl::ProvokingVertexComputePipelineCache mPipelineCache; 49 mtl::ProvokingVertexComputePipelineDesc mCachedDesc; 50 mtl::ComputeCommandEncoder mCurrentEncoder; [all …]
|
D | ProgramMtl.h | 38 mtl::AutoObjCPtr<id<MTLArgumentEncoder>> metalArgBufferEncoder; 39 mtl::BufferPool bufferPool; 48 mtl::AutoObjCPtr<id<MTLFunction>> metalShader; 55 const mtl::TranslatedShaderInfo *translatedSrcInfo; 58 class ProgramMtl : public ProgramImpl, public mtl::RenderPipelineCacheSpecializeShaderFactory 133 angle::Result getSpecializedShader(mtl::Context *context, 135 const mtl::RenderPipelineDesc &renderPipelineDesc, 138 const mtl::RenderPipelineDesc &renderPipelineDesc) override; 141 mtl::Context *context, 144 mtl::TranslatedShaderInfo *translatedMslInfo, [all …]
|
D | ContextMtl.h | 35 class ContextMtl : public ContextImpl, public mtl::Context 306 void queueEventSignal(const mtl::SharedEventRef &event, uint64_t value); 307 void serverWaitEvent(const mtl::SharedEventRef &event, uint64_t value); 309 const mtl::ClearColorValue &getClearColorValue() const; 310 const mtl::WriteMaskArray &getWriteMaskArray() const; 317 const mtl::Format &getPixelFormat(angle::FormatID angleFormatId) const; 318 const mtl::FormatCaps &getNativeFormatCaps(MTLPixelFormat mtlFormat) const; 320 const mtl::VertexFormat &getVertexFormat(angle::FormatID angleFormatId, 329 void endRenderEncoding(mtl::RenderCommandEncoder *encoder); 333 void flushCommandBuffer(mtl::CommandBufferFinishOperation operation); [all …]
|
D | VertexArrayMtl.h | 50 mtl::RenderCommandEncoder *cmdEncoder, 52 mtl::VertexDesc *vertexDescOut); 58 mtl::BufferRef *idxBufferOut, 66 mtl::BufferRef idxBuffer, 85 mtl::BufferRef *idxBufferOut, 91 mtl::BufferRef *idxBufferOut, 105 const mtl::VertexFormat &vertexFormat); 111 const mtl::VertexFormat &convertedFormat, 119 const mtl::VertexFormat &convertedFormat, 143 gl::AttribArray<const mtl::VertexFormat *> mCurrentArrayBufferFormats; [all …]
|
D | RenderBufferMtl.mm | 41 ContextMtl *contextMtl = mtl::GetImpl(context); 79 ANGLE_TRY(mtl::Texture::Make2DTexture( 92 ANGLE_TRY(mtl::Texture::Make2DMSTexture( 101 ANGLE_TRY(mtl::Texture::Make2DMSTexture( 109 mtl::kZeroNativeMipLevel, 0, mFormat); 113 bool emulatedChannels = mtl::IsFormatEmulated(mFormat); 127 ANGLE_TRY(mtl::InitializeTextureContents(context, mTexture, mFormat, 128 mtl::ImageNativeIndex(index, 0))); 131 ANGLE_TRY(mtl::InitializeTextureContents( 133 mtl::ImageNativeIndex(gl::ImageIndex::Make2DMultisample(), 0))); [all …]
|
D | FrameBufferMtl.h | 21 namespace mtl 105 mtl::RenderCommandEncoder *ensureRenderPassStarted(const gl::Context *context); 133 const mtl::BlitParams &baseParams); 136 mtl::ClearRectParams *clearOpts); 140 const mtl::ClearRectParams &clearOpts); 144 const mtl::ClearRectParams &clearOpts); 148 const mtl::ClearRectParams &clearOpts, 149 mtl::RenderCommandEncoder *encoder); 153 const mtl::ClearRectParams &clearOpts); 157 void setLoadStoreActionOnRenderPassFirstStart(mtl::RenderPassAttachmentDesc *attachmentOut, [all …]
|
D | RenderTargetMtl.mm | 28 void RenderTargetMtl::set(const mtl::TextureRef &texture, 29 const mtl::MipmapNativeLevel &level, 31 const mtl::Format &format) 36 void RenderTargetMtl::setWithImplicitMSTexture(const mtl::TextureRef &texture, 37 const mtl::TextureRef &implicitMSTexture, 38 const mtl::MipmapNativeLevel &level, 40 const mtl::Format &format) 49 void RenderTargetMtl::setTexture(const mtl::TextureRef &texture) 54 void RenderTargetMtl::setImplicitMSTexture(const mtl::TextureRef &implicitMSTexture) 69 mLevelIndex = mtl::kZeroNativeMipLevel; [all …]
|
D | TextureMtl.mm | 37 gl::ImageIndex GetZeroLevelIndex(const mtl::TextureRef &image) 60 gl::ImageIndex GetCubeOrArraySliceMipIndex(const mtl::TextureRef &image, 89 gl::ImageIndex GetLayerMipIndex(const mtl::TextureRef &image, uint32_t layer, uint32_t level) 271 mtl::BufferRef *bufferOut) 276 mtl::BufferRef stagingBuffer; 277 ANGLE_TRY(mtl::Buffer::MakeBuffer(contextMtl, stagingBufferSize, nullptr, &stagingBuffer)); 303 mtl::BufferRef *bufferOut) 308 mtl::BufferRef stagingBuffer; 309 ANGLE_TRY(mtl::Buffer::MakeBuffer(contextMtl, stagingBufferSize, nullptr, &stagingBuffer)); 332 mtl::BufferRef *bufferOut) [all …]
|
D | DisplayMtl.h | 133 mtl::CommandQueue &cmdQueue() { return mCmdQueue; } in cmdQueue() 134 const mtl::FormatTable &getFormatTable() const { return mFormatTable; } in getFormatTable() 135 mtl::RenderUtils &getUtils() { return mUtils; } in getUtils() 136 mtl::StateCache &getStateCache() { return mStateCache; } in getStateCache() 140 id<MTLDepthStencilState> getDepthStencilState(const mtl::DepthStencilDesc &desc) in getDepthStencilState() 144 id<MTLSamplerState> getSamplerState(const mtl::SamplerDesc &desc) in getSamplerState() 149 const mtl::Format &getPixelFormat(angle::FormatID angleFormatId) const in getPixelFormat() 153 const mtl::FormatCaps &getNativeFormatCaps(MTLPixelFormat mtlFormat) const in getNativeFormatCaps() 159 const mtl::VertexFormat &getVertexFormat(angle::FormatID angleFormatId, in getVertexFormat() 165 mtl::AutoObjCObj<MTLSharedEventListener> getOrCreateSharedEventListener(); [all …]
|
D | FrameBufferMtl.mm | 31 void OverrideMTLClearColor(const mtl::TextureRef &texture, 32 const mtl::ClearColorValue &clearColor, 36 mtl::EmulatedAlphaClearColor(clearColor.toMTLClearColor(), texture->getColorWritableMask()); 98 return invalidateImpl(mtl::GetImpl(context), count, attachments); 108 return invalidateImpl(mtl::GetImpl(context), count, attachments); 115 ContextMtl *contextMtl = mtl::GetImpl(context); 117 mtl::ClearRectParams clearOpts; 146 mtl::ClearRectParams clearOpts; 156 clearOpts.clearColor = mtl::ClearColorValue(values[0], values[1], values[2], values[3]); 169 mtl::ClearRectParams clearOpts; [all …]
|
D | TextureMtl.h | 27 mtl::TextureRef image; 36 TextureMtl(const TextureMtl &mtl, GLenum format); 166 mtl::RenderCommandEncoder *cmdEncoder, 172 const mtl::Format &getFormat() const { return mFormat; } in getFormat() 173 const mtl::TextureRef &getNativeTexture() const { return mNativeTexture; } in getNativeTexture() 188 mtl::TextureRef createImageViewFromNativeTexture(GLuint cubeFaceOrZero, 189 const mtl::MipmapNativeLevel &nativeLevel); 192 const mtl::Format &mtlFormat, 193 const mtl::TextureRef &texture); 194 mtl::MipmapNativeLevel getNativeLevel(const gl::ImageIndex &imageIndex) const; [all …]
|
D | ProgramMtl.mm | 55 mtl::BufferPool *dynamicBuffer, 59 mtl::BufferRef *bufferOut, 171 void InitArgumentBufferEncoder(mtl::Context *context, 180 mtl::kArgumentBufferOffsetAlignment, 0); 220 auto contextMtl = mtl::GetImpl(context); 256 if (mAuxBufferPool->reset(context, mtl::kDefaultUniformsMaxSize * 2, 257 mtl::kUniformBufferSettingOffsetMinAlignment, 331 ContextMtl *contextMtl = mtl::GetImpl(glContext); 341 mtl::GlslangGetShaderSpirvCode(mState, resources, &spirvBlobs, &variableInfoMap, 347 ANGLE_TRY(mtl::GlslangTransformSpirvCode(mState.getExecutable().getLinkedShaderStages(), [all …]
|
D | ProvokingVertexHelper.mm | 91 mtl::CommandQueue *commandQueue, 100 mIndexBuffers.initialize(context, kInitialIndexBufferSize, mtl::kIndexBufferOffsetAlignment, 0); 115 mCommandBuffer.commit(mtl::NoWait); 120 mtl::ComputeCommandEncoder *ProvokingVertexHelper::getComputeCommandEncoder() 140 static uint buildIndexBufferKey(const mtl::ProvokingVertexComputePipelineDesc &pipelineDesc) 168 rx::mtl::Context *context, 170 const mtl::ProvokingVertexComputePipelineDesc &pipelineDesc, 174 auto fcValues = mtl::adoptObjCObj([[MTLFunctionConstantValues alloc] init]); 183 const mtl::ProvokingVertexComputePipelineDesc &renderPipelineDesc) 190 mtl::ComputeCommandEncoder *encoder, [all …]
|
D | VertexArrayMtl.mm | 29 mtl::BufferPool *dynamicBuffer, 41 mtl::BufferRef newBuffer; 53 const mtl::VertexFormat &GetVertexConversionFormat(ContextMtl *contextMtl, 58 const mtl::VertexFormat &packedFormat = contextMtl->getVertexFormat(originalFormat, true); 79 mtl::BufferPool *dynamicBuffer, 84 mtl::BufferRef *bufferOut, 178 inline void SetDefaultVertexBufferLayout(mtl::VertexBufferLayoutDesc *layout) 180 layout->stepFunction = mtl::kVertexStepFunctionInvalid; 197 mDynamicVertexData.initialize(context, 0, mtl::kVertexAttribBufferStrideAlignment, 198 /** maxBuffers */ 10 * mtl::kMaxVertexAttribs); [all …]
|
D | ContextMtl.mm | 69 mtl::BufferPool *pool, 70 mtl::BufferRef *bufferOut, 75 ANGLE_TRY(mtl::GetTriangleFanIndicesCount(context, vertexCount, &numIndices)); 90 mtl::BufferPool *pool, 91 mtl::BufferRef *bufferOut, 143 mtl::RenderCommandEncoder *encoder = mContextMtl->getRenderCommandEncoder(); 149 mtl::BufferPool *indexBufferPool, 155 mContextMtl = mtl::GetImpl(context); 184 mtl::BufferRef mLineLoopIndexBuffer; 191 mtl::Context(display), [all …]
|
D | SurfaceMtl.h | 79 const mtl::TextureRef &getColorTexture() { return mColorTexture; } in getColorTexture() 80 const mtl::Format &getColorFormat() const { return mColorFormat; } in getColorFormat() 98 mtl::TextureRef mColorTexture; 99 mtl::TextureRef mDepthTexture; 100 mtl::TextureRef mStencilTexture; 103 mtl::TextureRef mMSColorTexture; 111 mtl::Format mColorFormat; 112 mtl::Format mDepthFormat; 113 mtl::Format mStencilFormat; 174 mtl::AutoObjCObj<CAMetalLayer> mMetalLayer = nil; [all …]
|
D | QueryMtl.mm | 22 ContextMtl *contextMtl = mtl::GetImpl(context); 32 ContextMtl *contextMtl = mtl::GetImpl(context); 40 ANGLE_TRY(mtl::Buffer::MakeBuffer(contextMtl, mtl::kOcclusionQueryResultSize, 64 ContextMtl *contextMtl = mtl::GetImpl(context); 90 ContextMtl *contextMtl = mtl::GetImpl(context); 99 contextMtl->flushCommandBuffer(mtl::NoWait); 123 ContextMtl *contextMtl = mtl::GetImpl(context); 132 contextMtl->flushCommandBuffer(mtl::NoWait); 171 blitEncoder->fillBuffer(mVisibilityResultBuffer, NSMakeRange(0, mtl::kOcclusionQueryResultSize),
|
D | SurfaceMtl.mm | 42 const mtl::Format &format, 47 mtl::TextureRef *textureOut) 49 ContextMtl *contextMtl = mtl::GetImpl(context); 57 ANGLE_TRY(mtl::Texture::Make2DMSTexture(contextMtl, format, width, height, samples, 64 ANGLE_TRY(mtl::Texture::Make2DTexture(contextMtl, format, width, height, 1, 149 ContextMtl *contextMtl = mtl::GetImpl(context); 157 ContextMtl *contextMtl = mtl::GetImpl(context); 158 contextMtl->flushCommandBuffer(mtl::WaitUntilScheduled); 253 ContextMtl *contextMtl = mtl::GetImpl(context); 256 mtl::RenderPassDesc rpDesc; [all …]
|
D | BufferMtl.h | 51 mtl::BufferPool data; 53 mtl::BufferRef convertedBuffer; 100 mtl::BufferRef getCurrentBuffer() const { return mIsWeak ? mBufferWeakRef.lock() : mBuffer; } in getCurrentBuffer() 103 mtl::BufferRef mBuffer; 104 mtl::BufferWeakRef mBufferWeakRef; 175 const mtl::BufferRef clientBuffer); 201 return getClientShadowCopyData(mtl::GetImpl(context)); in getClientShadowCopyData() 207 mtl::BufferPool mBufferPool; 225 void set(const mtl::BufferRef &buffer) { mBufferWeakRef = buffer; } in set()
|
D | ImageMtl.h | 42 const mtl::TextureRef &getTexture() const { return mNativeTexture; } in getTexture() 43 const mtl::Format &getFormatMtl() const { return mFormat; } in getFormatMtl() 50 mtl::Format mFormat; 55 mtl::TextureRef mNativeTexture; 69 const mtl::TextureRef &getTexture() const { return mNativeTexture; } in getTexture() 79 mtl::TextureRef mNativeTexture;
|
/third_party/skia/gn/ |
D | graphite.gni | 98 "$_include/mtl/MtlBackendContext.h", 99 "$_include/mtl/MtlTypes.h", 101 "$_src/mtl/MtlBlitCommandEncoder.h", 102 "$_src/mtl/MtlBuffer.h", 103 "$_src/mtl/MtlBuffer.mm", 104 "$_src/mtl/MtlCaps.h", 105 "$_src/mtl/MtlCaps.mm", 106 "$_src/mtl/MtlCommandBuffer.h", 107 "$_src/mtl/MtlCommandBuffer.mm", 108 "$_src/mtl/MtlGpu.h", [all …]
|
/third_party/skia/experimental/graphite/include/ |
D | TextureInfo.h | 21 namespace mtl { 31 TextureInfo(const mtl::TextureInfo& mtlInfo) in TextureInfo() 54 bool getMtlTextureInfo(mtl::TextureInfo* info) const { in getMtlTextureInfo() 58 *info = mtl::TextureSpecToTextureInfo(fMtlSpec, fSampleCount, fLevelCount); in getMtlTextureInfo() 65 friend class mtl::Caps; 66 friend class mtl::Texture; 67 const mtl::TextureSpec& mtlTextureSpec() const { in mtlTextureSpec() 82 mtl::TextureSpec fMtlSpec;
|
/third_party/skia/experimental/graphite/src/mtl/ |
D | MtlResourceProvider.mm | 8 #include "experimental/graphite/src/mtl/MtlResourceProvider.h" 10 #include "experimental/graphite/src/mtl/MtlBuffer.h" 11 #include "experimental/graphite/src/mtl/MtlCommandBuffer.h" 12 #include "experimental/graphite/src/mtl/MtlGpu.h" 13 #include "experimental/graphite/src/mtl/MtlTexture.h" 16 #include "experimental/graphite/src/mtl/MtlGraphicsPipeline.h" 18 namespace skgpu::mtl { 48 } // namespace skgpu::mtl
|
/third_party/skia/tools/graphite/mtl/ |
D | GraphiteMtlTestContext.h | 17 namespace skiatest::graphite::mtl { 29 const skgpu::mtl::BackendContext& getBackendContext() const { in getBackendContext() 34 TestContext(const skgpu::mtl::BackendContext& mtl) : fMtl(mtl) {} in TestContext() argument 36 skgpu::mtl::BackendContext fMtl;
|