forked from KhronosGroup/ANARI-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
khr_geometry_sphere.json
147 lines (146 loc) · 6.97 KB
/
khr_geometry_sphere.json
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"info" : {
"name" : "KHR_GEOMETRY_SPHERE",
"type" : "extension",
"dependencies" : []
},
"objects" : [
{
"type" : "ANARI_GEOMETRY",
"name" : "sphere",
"description" : "sphere geometry object",
"parameters" : [
{
"name" : "name",
"types" : ["ANARI_STRING"],
"tags" : [],
"description" : "optional object name"
}, {
"name" : "color",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform color"
}, {
"name" : "attribute0",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute0"
}, {
"name" : "attribute1",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute1"
}, {
"name" : "attribute2",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute2"
}, {
"name" : "attribute3",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute3"
}, {
"name" : "primitive.color",
"types" : ["ANARI_ARRAY1D"],
"elementType" : [
"ANARI_UFIXED8", "ANARI_UFIXED8_VEC2", "ANARI_UFIXED8_VEC3", "ANARI_UFIXED8_VEC4",
"ANARI_UFIXED8_R_SRGB", "ANARI_UFIXED8_RA_SRGB", "ANARI_UFIXED8_RGB_SRGB", "ANARI_UFIXED8_RGBA_SRGB",
"ANARI_UFIXED16", "ANARI_UFIXED16_VEC2", "ANARI_UFIXED16_VEC3", "ANARI_UFIXED16_VEC4",
"ANARI_UFIXED32", "ANARI_UFIXED32_VEC2", "ANARI_UFIXED32_VEC3", "ANARI_UFIXED32_VEC4",
"ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "per primitive color"
}, {
"name" : "primitive.attribute0",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "per primitive attribute0"
}, {
"name" : "primitive.attribute1",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "per primitive attribute1"
}, {
"name" : "primitive.attribute2",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "per primitive attribute2"
}, {
"name" : "primitive.attribute3",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "per primitive attribute3"
}, {
"name" : "primitive.id",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_UINT32", "ANARI_UINT64"],
"tags" : [],
"description" : "primitive id"
}, {
"name" : "vertex.position",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32_VEC3"],
"tags" : ["required"],
"description" : "sphere position"
}, {
"name" : "vertex.radius",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32"],
"tags" : [],
"description" : "sphere radius"
}, {
"name" : "vertex.color",
"types" : ["ANARI_ARRAY1D"],
"elementType" : [
"ANARI_UFIXED8", "ANARI_UFIXED8_VEC2", "ANARI_UFIXED8_VEC3", "ANARI_UFIXED8_VEC4",
"ANARI_UFIXED8_R_SRGB", "ANARI_UFIXED8_RA_SRGB", "ANARI_UFIXED8_RGB_SRGB", "ANARI_UFIXED8_RGBA_SRGB",
"ANARI_UFIXED16", "ANARI_UFIXED16_VEC2", "ANARI_UFIXED16_VEC3", "ANARI_UFIXED16_VEC4",
"ANARI_UFIXED32", "ANARI_UFIXED32_VEC2", "ANARI_UFIXED32_VEC3", "ANARI_UFIXED32_VEC4",
"ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "vertex color"
}, {
"name" : "vertex.attribute0",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "vertex attribute0"
}, {
"name" : "vertex.attribute1",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "vertex attribute1"
}, {
"name" : "vertex.attribute2",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "vertex attribute2"
}, {
"name" : "vertex.attribute3",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "vertex attribute3"
}, {
"name" : "primitive.index",
"types" : ["ANARI_ARRAY1D"],
"elementType" : ["ANARI_UINT32", "ANARI_UINT64"],
"tags" : [],
"description" : "index array"
}, {
"name" : "radius",
"types" : ["ANARI_FLOAT32"],
"tags" : [],
"description" : "global sphere radius"
}
]
}
]
}