Skip to content

Texture format capability info does not take device into account #3848

@kainino0x

Description

@kainino0x

Right now we have tables of texture format info that include both static info (like block sizes) and device-dependent info (like whether bgra8unorm can be used as storage - #3847). In the static tables, the capability info is that for a "base" device (no device descriptor).

I am not exactly sure how to do this - it requires passing a device in order to get data out of the table, but right now we're depending heavily on typescript to do nice type narrowing things when we access the table.

I was going to do this as a followup to #2495 but it seems I never filed it separately.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions