-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathkhr_sampler_image2d.json
85 lines (84 loc) · 3.67 KB
/
khr_sampler_image2d.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
{
"info" : {
"name" : "KHR_SAMPLER_IMAGE2D",
"type" : "extension",
"dependencies" : []
},
"objects" : [
{
"type" : "ANARI_SAMPLER",
"name" : "image2D",
"description" : "image2D object",
"parameters" : [
{
"name" : "name",
"types" : ["ANARI_STRING"],
"tags" : [],
"description" : "optional object name"
}, {
"name" : "image",
"types" : ["ANARI_ARRAY2D"],
"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" : ["required"],
"description" : "array backing the sampler"
}, {
"name" : "inAttribute",
"types" : ["ANARI_STRING"],
"tags" : ["attribute"],
"default" : "attribute0",
"description" : "input surface attribute (texture coordinate)"
}, {
"name" : "filter",
"types" : ["ANARI_STRING"],
"tags" : [],
"default" : "nearest",
"values" : ["nearest", "linear"],
"description" : "filter mode"
}, {
"name" : "wrapMode1",
"types" : ["ANARI_STRING"],
"tags" : [],
"default" : "clampToEdge",
"values" : ["clampToEdge", "repeat", "mirrorRepeat"],
"description" : "wrap mode for the 1st dimension"
}, {
"name" : "wrapMode2",
"types" : ["ANARI_STRING"],
"tags" : [],
"default" : "clampToEdge",
"values" : ["clampToEdge", "repeat", "mirrorRepeat"],
"description" : "wrap mode for the 2nd dimension"
}, {
"name" : "inTransform",
"types" : ["ANARI_FLOAT32_MAT4"],
"tags" : [],
"default" : [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
"description" : "transform applied to the input attribute before sampling"
}, {
"name" : "inOffset",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"default" : [0,0,0,0],
"description" : "offset added to output inTransform result"
}, {
"name" : "outTransform",
"types" : ["ANARI_FLOAT32_MAT4"],
"tags" : [],
"default" : [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
"description" : "transform applied to the sampled values"
}, {
"name" : "outOffset",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"default" : [0,0,0,0],
"description" : "offset added to output outTransform result"
}
]
}
]
}