- 1、本文档共64页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
Metal Programming Guide
Metal 编程指南
About Metal and this Guide
关于Metal和本⽂
The Metal framework supports GPU-accelerated advanced 3D graphics rendering and data-parallel computation
workloads. Metal provides a modern and streamlined API for fine-grain, low-level control of the organization,
processing, and submission of graphics and computation commands and the management of the associated data and
resources for these commands. A primary goal of Metal is to minimize the CPU overhead necessary for executing these
GPU workloads.
Metal框架⽀持GPU加速的3D图形渲染和并⾏数据计算。Metal提供了⼀系列的API⽤于在细粒度和低层次上组
织、处理、提交图形绘制指令、并⾏计算指令,并管理和这些指令相关联的数据和资源。Metal的⼀个主要⽬标
是减少GPU执⾏这些计算的必要的开销。
At a Glance
概述
This document describes the fundamental concepts of Metal: the command submission model, the memory management
model, and the use of independently compiled code (i.e., graphics shader functions or data-parallel computation
functions). The document then details how to use the Metal API to write an app that:
sets hardware state necessary for graphics or data-parallel compute workloads,
commits commands for execution by the GPU,
manages memory allocations, including buffer and texture objects,
and manages compiled (or compilable) graphics shader or compute function code written in the Metal shading language.
本⽂描述Metal的基本概念:计算指令分发模型,内存管理模型,独⽴编译的代码的使⽤(⽐如图形着⾊器程序
或者并⾏数据计算程序)。接下来本⽂详述如何使⽤Metal的API实现app :
为图形渲染或是并⾏计算设置必要的硬件状态
提交命令到GPU执⾏
管理内存分配,包括buffer对象和textrue对象
管理编译好的(可编译的)图形着⾊程序或是⽤Metal着⾊程序语⾔写的并⾏计算程序
How to Use This Document
如何使⽤本⽂
This document contains the following articles:
Fundamental Metal Concepts (page 9) briefly describes the main features of Metal.
Command Organization and Execution Model (page 10) explains creating, committing, and executing commands on the
GPU.
Resource Objects: Buffers and Textures (page 18) discusses the management of device memory, including buffer and
texture objects that represent GPU memory allocations.
Functions and Libraries (page 26) descr
您可能关注的文档
- 《数据库程序员面试笔试真题库》.pdf
- 【BT框架】2018税务师 财务与会计(会计).pdf
- 【BT框架】2018税务师 涉税服务实务.pdf
- 【BT框架】2018税务师 税法二.pdf
- 【BT框架】2018税务师 税法一.pdf
- 【BT重难点】2018税务师 财务与会计.pdf
- 【BT重难点】2018税务师 涉税服务实务.pdf
- 【BT重难点】2018税务师 涉税服务相关法律.pdf
- 【BT重难点】2018税务师 税二.pdf
- 【BT重难点】2018税务师 税法一.pdf
- 2023年黑龙江大庆市萨尔图公证处招聘2人(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
- 2023年湖北咸宁市嘉鱼县农业农村局招聘工作人员23人(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
- 2023年福建泉州安溪县地震办公室招聘1人(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
- 2023广西玉林市江南区安监局招聘外聘人员2人(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
- 2023年贵州省黔西南册亨县新增人才引进10人(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
- 2023年陕西省安康市汉阴广播电视台招聘4人(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
- 2023安徽潜山县部分事业单位招聘(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
- 2023年福建厦门市思明区文化和旅游局及所属事业单位招聘8人(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
- 2023贵州毕节食品药品检验所事业单位招聘6人(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
- 2023年广东省广州海洋地质调查局招聘应届毕业生(共500题含答案解析)笔试必备资料历年高频考点试题摘选.docx
文档评论(0)