Skip to content

Instantly share code, notes, and snippets.

@zakorgy
Last active August 1, 2019 11:09
Show Gist options
  • Save zakorgy/0c90e2e9c15af7d5fcadde81628ad38a to your computer and use it in GitHub Desktop.
Save zakorgy/0c90e2e9c15af7d5fcadde81628ad38a to your computer and use it in GitHub Desktop.
Descriptor layout [
DescriptorSetLayout {
bindings: [
DescriptorSetLayoutBinding {
binding: 3,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX | HULL | DOMAIN | GEOMETRY | FRAGMENT | COMPUTE | GRAPHICS | ALL,
immutable_samplers: true,
},
DescriptorSetLayoutBinding {
binding: 4,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX | HULL | DOMAIN | GEOMETRY | FRAGMENT | COMPUTE | GRAPHICS | ALL,
immutable_samplers: true,
},
],
},
DescriptorSetLayout {
bindings: [
DescriptorSetLayoutBinding {
binding: 5,
ty: StorageBuffer,
count: 1,
stage_flags: VERTEX | HULL | DOMAIN | GEOMETRY | FRAGMENT | COMPUTE | GRAPHICS | ALL,
immutable_samplers: false,
},
DescriptorSetLayoutBinding {
binding: 6,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX,
immutable_samplers: true,
},
DescriptorSetLayoutBinding {
binding: 7,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX,
immutable_samplers: true,
},
DescriptorSetLayoutBinding {
binding: 8,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX | HULL | DOMAIN | GEOMETRY | FRAGMENT | COMPUTE | GRAPHICS | ALL,
immutable_samplers: true,
},
DescriptorSetLayoutBinding {
binding: 9,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX,
immutable_samplers: true,
},
DescriptorSetLayoutBinding {
binding: 10,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX,
immutable_samplers: true,
},
],
},
DescriptorSetLayout {
bindings: [
DescriptorSetLayoutBinding {
binding: 0,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX | HULL | DOMAIN | GEOMETRY | FRAGMENT | COMPUTE | GRAPHICS | ALL,
immutable_samplers: false,
},
DescriptorSetLayoutBinding {
binding: 1,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX | HULL | DOMAIN | GEOMETRY | FRAGMENT | COMPUTE | GRAPHICS | ALL,
immutable_samplers: false,
},
DescriptorSetLayoutBinding {
binding: 2,
ty: CombinedImageSampler,
count: 1,
stage_flags: VERTEX | HULL | DOMAIN | GEOMETRY | FRAGMENT | COMPUTE | GRAPHICS | ALL,
immutable_samplers: false,
},
],
},
DescriptorSetLayout {
bindings: [
DescriptorSetLayoutBinding {
binding: 0,
ty: UniformBuffer,
count: 1,
stage_flags: VERTEX,
immutable_samplers: false,
},
],
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment