Metal Shading Language Specification



Yüklə 4,82 Kb.
Pdf görüntüsü
səhifə2/51
tarix25.05.2018
ölçüsü4,82 Kb.
#45967
1   2   3   4   5   6   7   8   9   ...   51

4.3.4.1  
Vertex Function Input Attributes 
67 
................................................................................
4.3.4.2  
Post-Tessellation Vertex Function Input Attributes 
68 
....................................................
4.3.4.3  
Vertex Function Output Attributes 
69 
.............................................................................
4.3.4.4  
Fragment Function Input Attributes 
71 
............................................................................
4.3.4.5  
Fragment Function Output Attributes 
73 
........................................................................
4.3.4.6  
Kernel Function Input Attributes 
74 
.................................................................................
4.3.5   
stage_in Attribute  
78 
......................................................................................................
4.3.5.1  
Vertex Function Example that Uses the stage_in Attribute 
78 
........................................
4.3.5.2  
Fragment Function Example that Uses the stage_in Attribute 
79 
...................................
4.3.5.3  
Kernel Function Example that Uses the stage_in Attribute 
81 
........................................
4.4 
Storage Class Specifiers 
81 
..................................................................................................
4.5 
Sampling and Interpolation Attributes 
82 
.............................................................................
4.6 
Per-Fragment Function vs. Per-Sample Function 
83 
............................................................
4.7 
Imageblock Attributes 
84 
......................................................................................................
4.7.1   
user Attribute for Matching Data Members of Master and View Imageblocks  
84 
..........
4.7.2   
Imageblocks and Raster Order Groups 
88 
......................................................................
4.7.3   
Aliasing Explicit and Implicit Imageblocks 
90 
.................................................................
4.7.4   
Imageblocks and Function Constants 
91 
........................................................................
4.8 
Programmable Blending 
91 
...................................................................................................
4.9 
Graphics Function – Signature Matching 
91 
.........................................................................
4.9.1   
Vertex – Fragment Signature Matching  
92 
.....................................................................
4.10  Program Scope Function Constants 
97 
................................................................................
4.10.1   
Specifying Program Scope Function Constants 
98 
........................................................
4.10.1.1  
Function Constants to Control Code Paths to Compile 
99 
.............................................
4.10.1.2 
Function Constants when Declaring the Arguments of Functions  
100 
..........................
4.10.1.3 
Function Constants for Elements of a [[stage_in]] Struct 
102 
........................................
4.10.1.4 
Function Constants for Resource Bindings 
104 
..............................................................
4.10.1.5 
Function Constants for Color Attachments and Raster Order Groups 
104 
.....................
4.10.1.6 
Function Constants with Elements of a Struct 
105 
.........................................................
4.11 
Per-Primitive Viewport and Scissor Rectangle Index Selection 
105 
.....................................
4.12  Additional Restrictions 
106 
...................................................................................................
5  Metal Standard Library  
107 
...........................................................................
5.1 
Namespace and Header Files 
107 
.........................................................................................
 
2017-9-12   |  Copyright © 2017 Apple Inc. All Rights Reserved.  
Page    of  
4
174


5.2 
Common Functions 
107 
........................................................................................................
5.3 
Integer Functions 
108 
...........................................................................................................
5.4 
Relational Functions 
110 
.......................................................................................................
5.5 
Math Functions 
111 
................................................................................................................
5.6 
Matrix Functions 
115 
.............................................................................................................
5.7 
Geometric Functions 
116 
......................................................................................................
5.8 
Compute Functions 
117 
.........................................................................................................
5.8.1   
Threadgroup and SIMD-group Synchronization Functions 
117 
......................................
5.9 
Graphics Functions 
119 
.........................................................................................................
5.9.1   
Fragment Functions 
119 
..................................................................................................
5.9.1.1   
Fragment Functions – Derivatives   
119 
...........................................................................
5.9.1.2  
Fragment Functions – Samples 
119 
................................................................................
5.9.1.3  
Fragment Functions – Flow Control 
120 
..........................................................................
5.10  Texture Functions 
120 
...........................................................................................................
5.10.1   
1D Texture 
121 
.................................................................................................................
5.10.22 
1D Texture Array 
122 
.......................................................................................................
5.10.3  2D Texture 
122 
......................................................................................................................
5.10.3.1 
2D Texture Sampling Example 
123 
..................................................................................
5.10.4  2D Texture Array 
124 
.............................................................................................................
5.10.5  3D Texture 
125 
......................................................................................................................
5.10.6  Cube Texture 
125 
..................................................................................................................
5.10.7   
Cube Array Texture 
127 
...................................................................................................
5.10.8  2D Multisampled Texture 
128 
...............................................................................................
5.10.9  2D Depth Texture 
128 
...........................................................................................................
5.10.10 2D Depth Texture Array 
129 
..................................................................................................
5.10.11 Cube Depth Texture 
130 
.......................................................................................................
5.10.12 Cube Array Depth Texture 
131 
..............................................................................................
5.10.13 2D Multisampled Depth Texture 
133 
.....................................................................................
5.10.14 Texture Fence Functions 
133 
................................................................................................
5.10.15 Null Texture Functions 
134 
....................................................................................................
5.11 
Pack and Unpack Functions 
134 
...........................................................................................
5.11.1   
Unpack Integer(s); Convert to a Floating-Point Vector 
134 
............................................
5.11.2   
Convert Floating-Point Vector to Integers, then Pack the Integers 
135 
..........................
 
2017-9-12   |  Copyright © 2017 Apple Inc. All Rights Reserved.  
Page    of  
5
174


Yüklə 4,82 Kb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   ...   51




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə