gpu: add dawn.InstanceDescriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
806acf08fe
commit
684fffb2fb
2 changed files with 7 additions and 6 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
typedef struct WGPUDawnInstanceDescriptor {
|
|
||||||
WGPUChainedStruct chain;
|
|
||||||
uint32_t additionalRuntimeSearchPathsCount;
|
|
||||||
const char* const * additionalRuntimeSearchPaths;
|
|
||||||
} WGPUDawnInstanceDescriptor;
|
|
||||||
|
|
||||||
typedef struct WGPUDawnTextureInternalUsageDescriptor {
|
typedef struct WGPUDawnTextureInternalUsageDescriptor {
|
||||||
WGPUChainedStruct chain;
|
WGPUChainedStruct chain;
|
||||||
WGPUTextureUsageFlags internalUsage;
|
WGPUTextureUsageFlags internalUsage;
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,10 @@ pub const EncoderInternalUsageDescriptor = struct {
|
||||||
chain: ChainedStruct,
|
chain: ChainedStruct,
|
||||||
use_internal_usages: bool,
|
use_internal_usages: bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const InstanceDescriptor = extern struct {
|
||||||
|
// TODO: file an issue on Dawn: why not named nextInChain?
|
||||||
|
chain: ChainedStruct,
|
||||||
|
additional_runtime_search_paths_count: u32,
|
||||||
|
additional_runtime_search_paths: [*]const u8,
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue