-
Notifications
You must be signed in to change notification settings - Fork 102
/
GL_EXT_shader_atomic_int64.txt
132 lines (82 loc) · 3.31 KB
/
GL_EXT_shader_atomic_int64.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Name
EXT_shader_atomic_int64
Name Strings
GL_EXT_shader_atomic_int64
Contact
Aaron Hagan, AMD (aaron.hagan 'at' amd.com)
Contributors
Pat Brown, NVIDIA
Jeff Bolz, NVIDIA
Cyril Crassin, NVIDIA
Christoph Kubisch, NVIDIA
Aaron Hagan, AMD
Daniel Rakos, AMD
Status
Complete.
Version
Last Modified Date: July 5, 2018
Number
OpenGL Extension #XXX
Dependencies
This extension is written against version 4.40 (revision 8) of the OpenGL
Shading Language Specification, dated January 22, 2014.
Overview
This extension provides additional GLSL built-in functions and assembly
opcodes allowing shaders to perform additional atomic read-modify-write
operations on 64-bit signed and unsigned integers.
New Procedures and Functions
None.
New Tokens
None.
Additions to OpenGL 4.4 Specification
None.
Additions to the AGL/GLX/WGL Specifications
None.
GLX Protocol
None.
Modifications to the OpenGL Shading Language Specification, Version 4.40
(revision 8)
Including the following line in a shader can be used to control the
language features described in this extension:
#extension GL_EXT_shader_atomic_int64 : <behavior>
where <behavior> is as specified in section 3.3.
New preprocessor #defines are added to the OpenGL Shading Language:
#define GL_EXT_shader_atomic_int64 1
Modify Section 8.11, Atomic Memory Functions, p. 168
Add the following new functions to the table on p. 173:
uint64_t atomicMin(inout uint64_t mem, uint64_t data);
uint64_t atomicMax(inout uint64_t mem, uint64_t data);
uint64_t atomicAnd(inout uint64_t mem, uint64_t data);
uint64_t atomicOr (inout uint64_t mem, uint64_t data);
uint64_t atomicXor(inout uint64_t mem, uint64_t data);
int64_t atomicMin(inout int64_t mem, int64_t data);
int64_t atomicMax(inout int64_t mem, int64_t data);
int64_t atomicAnd(inout int64_t mem, int64_t data);
int64_t atomicOr (inout int64_t mem, int64_t data);
int64_t atomicXor(inout int64_t mem, int64_t data);
uint64_t atomicAdd(inout uint64_t mem, uint64_t data);
uint64_t atomicExchange(inout uint64_t mem, uint64_t data);
uint64_t atomicCompSwap(inout uint64_t mem, uint64_t compare,
uint64_t data);
int64_t atomicAdd(inout int64_t mem, int64_t data);
int64_t atomicExchange(inout int64_t mem, int64_t data);
int64_t atomicCompSwap(inout int64_t mem, int64_t compare,
int64_t data);
Errors
None.
New State
None.
New Implementation Dependent State
None.
Issues
1. How is this extension related to the NV_shader_atomic_int64 extension?
RESOLVED: This is a vendor portable superset of that which also
includes the 64-bit unsigned integer atomic add, exchange, and
compare-exchange operations originally introduced in
NV_shader_buffer_store, and can used with the
VK_KHR_shader_atomic_int64 Vulkan extension.
Revision History
Rev. Date Author Changes
---- ---------- -------- -----------------------------------------------
1 07/05/2018 ahagan Internal revisions based on the
GL_NV_shader_atomic_int64 extension.