gpu: add dawn.TogglesDeviceDescriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7a9a2b1fb7
commit
99cffbf321
2 changed files with 9 additions and 8 deletions
|
|
@ -1,11 +1,3 @@
|
||||||
typedef struct WGPUDawnTogglesDeviceDescriptor {
|
|
||||||
WGPUChainedStruct chain;
|
|
||||||
uint32_t forceEnabledTogglesCount;
|
|
||||||
const char* const * forceEnabledToggles;
|
|
||||||
uint32_t forceDisabledTogglesCount;
|
|
||||||
const char* const * forceDisabledToggles;
|
|
||||||
} WGPUDawnTogglesDeviceDescriptor;
|
|
||||||
|
|
||||||
typedef struct WGPUExternalTextureBindingEntry {
|
typedef struct WGPUExternalTextureBindingEntry {
|
||||||
WGPUChainedStruct chain;
|
WGPUChainedStruct chain;
|
||||||
WGPUExternalTexture externalTexture;
|
WGPUExternalTexture externalTexture;
|
||||||
|
|
|
||||||
|
|
@ -25,3 +25,12 @@ pub const TextureInternalUsageDescriptor = extern struct {
|
||||||
chain: ChainedStruct,
|
chain: ChainedStruct,
|
||||||
internal_usage: Texture.UsageFlags,
|
internal_usage: Texture.UsageFlags,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const TogglesDeviceDescriptor = extern struct {
|
||||||
|
// TODO: file an issue on Dawn: why not named nextInChain?
|
||||||
|
chain: ChainedStruct,
|
||||||
|
force_enabled_toggles_count: u32,
|
||||||
|
force_enabled_toggles: [*]const u8,
|
||||||
|
force_disabled_toggles_count: u32,
|
||||||
|
force_disabled_toggles: [*]const u8,
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue