Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use argument buffers on Metal #2547

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Cargo.lock
/*.wgsl
/*.hlsl
/*.txt
*.code-workspace
7 changes: 5 additions & 2 deletions src/back/msl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ mod writer;

pub use writer::Writer;

use self::writer::EntryPointInfo;

pub type Slot = u8;
pub type InlineSamplerIndex = u8;

Expand Down Expand Up @@ -79,6 +81,7 @@ pub struct EntryPointResources {

pub type EntryPointResourceMap = std::collections::BTreeMap<String, EntryPointResources>;

#[derive(Debug, Clone)]
enum ResolvedBinding {
BuiltIn(crate::BuiltIn),
Attribute(u32),
Expand All @@ -94,7 +97,7 @@ enum ResolvedBinding {
Resource(BindTarget),
}

#[derive(Copy, Clone)]
#[derive(Debug, Copy, Clone)]
enum ResolvedInterpolation {
CenterPerspective,
CenterNoPerspective,
Expand Down Expand Up @@ -494,7 +497,7 @@ pub struct TranslationInfo {
/// corresponds to an entry point index.
///
///Note: Some entry points may fail translation because of missing bindings.
pub entry_point_names: Vec<Result<String, EntryPointError>>,
pub entry_point_info: Vec<Result<EntryPointInfo, EntryPointError>>,
}

pub fn write_string(
Expand Down
Loading