Skip to content
Merged
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
238 changes: 131 additions & 107 deletions Cargo.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions generated/graphics/ash/cargo-gpu/mygraphics-shaders/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ use glam::{Vec2, Vec3, Vec4, vec2, vec3};
use spirv_std::num_traits::Float;
use spirv_std::spirv;

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[derive(Copy, Clone, Pod, Zeroable)]
#[repr(C)]
pub struct ShaderConstants {
Expand All @@ -15,11 +20,6 @@ pub struct ShaderConstants {
pub offset: Vec2,
}

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[spirv(vertex)]
pub fn main_vs(
#[spirv(vertex_index)] vert_id: i32,
Expand Down
4 changes: 2 additions & 2 deletions generated/graphics/ash/cargo-gpu/mygraphics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ ash-window.workspace = true
gpu-allocator.workspace = true

# math libraries
glam = { version = "0.33.11", default-features = false, features = ["bytemuck"] }
bytemuck = { version = "1.24.0", features = ["derive"] }
glam.workspace = true
bytemuck.workspace = true

# other
raw-window-handle.workspace = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ use glam::{Vec2, Vec3, Vec4, vec2, vec3};
use spirv_std::num_traits::Float;
use spirv_std::spirv;

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[derive(Copy, Clone, Pod, Zeroable)]
#[repr(C)]
pub struct ShaderConstants {
Expand All @@ -15,11 +20,6 @@ pub struct ShaderConstants {
pub offset: Vec2,
}

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[spirv(vertex)]
pub fn main_vs(
#[spirv(vertex_index)] vert_id: i32,
Expand Down
4 changes: 2 additions & 2 deletions generated/graphics/ash/spirv-builder/mygraphics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ ash-window.workspace = true
gpu-allocator.workspace = true

# math libraries
glam = { version = "0.33.11", default-features = false, features = ["bytemuck"] }
bytemuck = { version = "1.24.0", features = ["derive"] }
glam.workspace = true
bytemuck.workspace = true

# other
raw-window-handle.workspace = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ use glam::{Vec2, Vec3, Vec4, vec2, vec3};
use spirv_std::num_traits::Float;
use spirv_std::spirv;

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[derive(Copy, Clone, Pod, Zeroable)]
#[repr(C)]
pub struct ShaderConstants {
Expand All @@ -15,11 +20,6 @@ pub struct ShaderConstants {
pub offset: Vec2,
}

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[spirv(vertex)]
pub fn main_vs(
#[spirv(vertex_index)] vert_id: i32,
Expand Down
4 changes: 2 additions & 2 deletions generated/graphics/wgpu/cargo-gpu/mygraphics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pollster.workspace = true
env_logger.workspace = true

# math libraries
glam = { version = "0.33.11", default-features = false, features = ["bytemuck"] }
bytemuck = { version = "1.24.0", features = ["derive"] }
glam.workspace = true
bytemuck.workspace = true

# other
raw-window-handle.workspace = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ use glam::{Vec2, Vec3, Vec4, vec2, vec3};
use spirv_std::num_traits::Float;
use spirv_std::spirv;

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[derive(Copy, Clone, Pod, Zeroable)]
#[repr(C)]
pub struct ShaderConstants {
Expand All @@ -15,11 +20,6 @@ pub struct ShaderConstants {
pub offset: Vec2,
}

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[spirv(vertex)]
pub fn main_vs(
#[spirv(vertex_index)] vert_id: i32,
Expand Down
4 changes: 2 additions & 2 deletions generated/graphics/wgpu/spirv-builder/mygraphics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pollster.workspace = true
env_logger.workspace = true

# math libraries
glam = { version = "0.33.11", default-features = false, features = ["bytemuck"] }
bytemuck = { version = "1.24.0", features = ["derive"] }
glam.workspace = true
bytemuck.workspace = true

# other
raw-window-handle.workspace = true
Expand Down
10 changes: 5 additions & 5 deletions graphics/mygraphics-shaders/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ use glam::{Vec2, Vec3, Vec4, vec2, vec3};
use spirv_std::num_traits::Float;
use spirv_std::spirv;

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[derive(Copy, Clone, Pod, Zeroable)]
#[repr(C)]
pub struct ShaderConstants {
Expand All @@ -15,11 +20,6 @@ pub struct ShaderConstants {
pub offset: Vec2,
}

#[spirv(fragment)]
pub fn main_fs(vtx_color: Vec3, output: &mut Vec4) {
*output = Vec4::from((vtx_color, 1.));
}

#[spirv(vertex)]
pub fn main_vs(
#[spirv(vertex_index)] vert_id: i32,
Expand Down
4 changes: 2 additions & 2 deletions graphics/mygraphics/Cargo.toml.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ env_logger.workspace = true
{%- endif %}

# math libraries
glam = { version = "0.33.11", default-features = false, features = ["bytemuck"] }
bytemuck = { version = "1.24.0", features = ["derive"] }
glam.workspace = true
bytemuck.workspace = true

# other
raw-window-handle.workspace = true
Expand Down
Loading