File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1950,7 +1950,11 @@ impl<W: Write> Writer<W> {
1950
1950
image,
1951
1951
sampler,
1952
1952
clamp_to_edge : true ,
1953
- ..
1953
+ gather : None ,
1954
+ array_index : None ,
1955
+ offset : None ,
1956
+ level : crate :: SampleLevel :: Zero ,
1957
+ depth_ref : None ,
1954
1958
} => {
1955
1959
write ! ( self . out, "{IMAGE_SAMPLE_BASE_CLAMP_TO_EDGE_FUNCTION}(" ) ?;
1956
1960
self . put_expression ( image, context, true ) ?;
@@ -1969,8 +1973,14 @@ impl<W: Write> Writer<W> {
1969
1973
offset,
1970
1974
level,
1971
1975
depth_ref,
1972
- clamp_to_edge : _ ,
1976
+ clamp_to_edge,
1973
1977
} => {
1978
+ if clamp_to_edge {
1979
+ return Err ( Error :: GenericValidation (
1980
+ "ImageSample::clamp_to_edge should have been validated out" . to_string ( ) ,
1981
+ ) ) ;
1982
+ }
1983
+
1974
1984
let main_op = match gather {
1975
1985
Some ( _) => "gather" ,
1976
1986
None => "sample" ,
You can’t perform that action at this time.
0 commit comments