mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Reserve the descriptor set instead of the binding
This commit is contained in:
parent
0f78bd3e6b
commit
28e71d9932
@ -159,6 +159,12 @@ impl<'tcx> CodegenCx<'tcx> {
|
||||
has_location = false;
|
||||
}
|
||||
SpirvAttribute::DescriptorSet(index) => {
|
||||
if index == 0 {
|
||||
self.tcx.sess.span_err(
|
||||
hir_param.span,
|
||||
"descriptor_set 0 is reserved for internal / future use",
|
||||
);
|
||||
}
|
||||
self.emit_global().decorate(
|
||||
variable,
|
||||
Decoration::DescriptorSet,
|
||||
@ -167,12 +173,6 @@ impl<'tcx> CodegenCx<'tcx> {
|
||||
has_location = false;
|
||||
}
|
||||
SpirvAttribute::Binding(index) => {
|
||||
if index == 0 {
|
||||
self.tcx.sess.span_err(
|
||||
hir_param.span,
|
||||
"descriptor_set 0 is reserved for internal / future use",
|
||||
);
|
||||
}
|
||||
self.emit_global().decorate(
|
||||
variable,
|
||||
Decoration::Binding,
|
||||
|
Loading…
Reference in New Issue
Block a user