-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I think this is maybe not sufficient for detecting bindless:
screen-13/src/driver/graphic.rs
Lines 457 to 459 in 71c1c05
| if descriptor_info.binding_count() == 0 { | |
| descriptor_info.set_binding_count(info.bindless_descriptor_count); | |
| } |
In HLSL using
Texture2D Texture2DTable[] : register(t0, space0); the binding count ends up being 1 instead of 0.
I don't think it's really a solution, but as a test, before here:
screen-13/src/driver/shader.rs
Lines 871 to 873 in 71c1c05
| let descriptor_info = match desc_ty { | |
| DescriptorType::AccelStruct() => { |
if "Texture2DTable" == name.as_deref().unwrap_or_default() {
binding_count = 0;
}And it actually made a HLSL version of the bindless example work (though I still haven't gotten samplers working correctly so this was just with Texture2DTable[input.instance_index].Load(int3(0, 0, 0)))
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working