Skip to content

Instantly share code, notes, and snippets.

Declan Hopkins Dooskington

Block or report user

Report or block Dooskington

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View shaders
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout(location = 0) in vec4 fragColor;
layout(location = 1) in vec2 fragUv;
layout(location = 0) out vec4 target;
extern crate gfx_backend_dx12 as backend;
#[cfg(target_os = "macos")]
extern crate gfx_backend_metal as backend;
#[cfg(all(unix, not(target_os = "macos")))]
extern crate gfx_backend_vulkan as backend;
extern crate gfx_hal;
extern crate nalgebra_glm as glm;
extern crate winit;
// Create texture
let (texture_image, texture_memory, texture_view, texture_sampler) = {
let img = image::open("res/textures/costanza.png")
.expect("Failed to load image!")
let (width, height) = img.dimensions();
let (texture_image, texture_memory, texture_view) = create_image(
You can’t perform that action at this time.