Skip to content

Instantly share code, notes, and snippets.

View expenses's full-sized avatar
❤️‍🔥

Ashley expenses

❤️‍🔥
View GitHub Profile
use std::any::Any;
struct Message {
func: Box<dyn FnOnce(Rc<wgpu::Device>) -> Box<dyn Any + Send> + Send>,
response_tx: std::sync::mpsc::Sender<Box<dyn Any + Send>>,
}
pub struct ThreadSafeDevice {
tx: async_std::channel::Sender<Message>,
use wasm_bindgen::prelude::wasm_bindgen;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(js_name = initializeBasis, js_namespace = ["window", "basis_transcoder"])]
pub fn initialize_basis();
#[wasm_bindgen(js_namespace = ["window", "basis_transcoder"])]
pub type BasisFile;
********************************************************************************************************
Thu Dec 9 22:24:17 2021
Log Started.
********************************************************************************************************
[ 22:24:17 | INFO ] : Successfully initialized platform! , FILE : application.cpp , LINE : 232
[ 22:24:17 | INFO ] : Vulkan - General : loaderGetDeviceRegistryFiles: GUID for 11 is not SoftwareComponent skipping , FILE : vk.cpp , LINE : 152
[ 22:24:17 | INFO ] : Vulkan - General : loaderGetDeviceRegistryFiles: GUID for 15 is not SoftwareComponent skipping , FILE : vk.cpp , LINE : 152
[ 22:24:17 | INFO ] : Vulkan - General : Searching for ICD drivers named .\amdvlk64.dll , FILE : vk.cpp , LINE : 152
[ 22:24:17 | INFO ] : Vulkan - General : Searching for ICD drivers named .\igvk64.dll , FILE : vk.cpp , LINE : 152
[ 22:24:17 | INFO ] : Vulkan - General : Build ICD instance extension list , FILE : vk.cpp , LINE : 152
warning: /Users/ashley/projects/transmission-renderer/Cargo.toml: version requirement `0.11.0+1.1.5` for dependency `ash-molten` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion
warning: field is never read: `lib`
--> /Users/ashley/projects/ash/ash/src/entry.rs:25:5
|
25 | lib: L,
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: field is never read: `handle`
; SPIR-V
; Version: 1.3
; Generator: Embark Studios Rust GPU Compiler Backend; 0
; Bound: 3028
; Schema: 0
OpCapability RuntimeDescriptorArray
OpCapability Shader
OpExtension "SPV_EXT_descriptor_indexing"
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical Simple
diff --git "a/C:\\Users\\Ashley\\AppData\\Local\\Temp\\.tmp0x6Aro\\a.dis" "b/C:\\Users\\Ashley\\AppData\\Local\\Temp\\.tmp0x6Aro\\b.dis"
index 8e68ce8..ce67daf 100644
--- "a/C:\\Users\\Ashley\\AppData\\Local\\Temp\\.tmp0x6Aro\\a.dis"
+++ "b/C:\\Users\\Ashley\\AppData\\Local\\Temp\\.tmp0x6Aro\\b.dis"
@@ -1,204 +1,204 @@
; SPIR-V
; Version: 1.3
; Generator: Embark Studios Rust GPU Compiler Backend; 0
-; Bound: 5465
+; Bound: 5467
diff --git "a/.\\before.glsl" "b/.\\after.glsl"
index 758d541..7888417 100644
--- "a/.\\before.glsl"
+++ "b/.\\after.glsl"
@@ -2,142 +2,102 @@
#extension GL_EXT_nonuniform_qualifier : require
layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in;
-struct _8
+struct _10
trait GetUnchecked<T> {
unsafe fn get_unchecked(&self, index: usize) -> &T;
unsafe fn get_unchecked_mut(&mut self, index: usize) -> &mut T;
}
impl<T> GetUnchecked<T> for [T] {
unsafe fn get_unchecked(&self, index: usize) -> &T {
asm!(
"%slice_ptr = OpLoad _ {slice_ptr_ptr}",
@expenses
expenses / powi.dis
Last active November 12, 2021 23:40
; SPIR-V
; Version: 1.3
; Generator: Embark Studios Rust GPU Compiler Backend; 0
; Bound: 167
; Schema: 0
OpCapability Float64
OpCapability Int16
OpCapability Int64
OpCapability Int8
OpCapability ShaderClockKHR
; SPIR-V
; Version: 1.4
; Generator: Google rspirv; 0
; Bound: 30
; Schema: 0
OpCapability Int64
OpCapability Int8
OpCapability RayTracingKHR
OpCapability RuntimeDescriptorArray
OpCapability ShaderClockKHR