Commit Graph
9013 Commits
Author SHA1 Message Date
Dzmitry Malyshau d4fb81a005 [wgsl] basic typed constructors 2020-03-03 22:56:11 -05:00
Dzmitry Malyshau b9ba223b6e [wgsl] basic parsing of entry points and global constants 2020-03-03 22:33:53 -05:00
Dzmitry Malyshau 78d5a73a2f [msl] support returning values 2020-03-03 16:25:56 -05:00
Dzmitry Malyshau ee987325a5 [wgsl] basic parsing of function body 2020-03-03 16:08:20 -05:00
Dzmitry Malyshau a9c476d58d Move out Void from the type enum 2020-03-03 14:09:41 -05:00
Dzmitry Malyshau 4a9f838208 [wgsl] first bits of function parsing 2020-03-03 13:52:47 -05:00
bors[bot]andJoshua Groves 40889df58f Merge #507
507: Update logo and move bindings section r=kvark a=grovesNL

- Adjust the logo slightly
- Move the bindings section up slightly to hopefully reduce confusion for users coming to gfx-rs/wgpu looking for the Rust bindings (gfx-rs/wgpu-rs)
  - Also added some experimental Julia bindings
  - Open to other ideas how we can improve the repository naming confusion, though long term I think we may want to adjust the naming somehow (like we talked about before the sync was setup)

[Rendered](https://github.com/grovesNL/wgpu-native/blob/8b19724364555c1855eda5349675d925ef0891f5/README.md)

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-03-03 17:37:32 +00:00
bors[bot]andJoshua Groves 3cfb78d372 [rs] Merge #185
185: Update readme r=kvark a=grovesNL

Add logo and update readme text a bit (link to WASM progress, reword examples section slightly, etc.)

[Rendered](https://github.com/grovesNL/wgpu-rs/blob/ea4bf79ff71f2089beace873a629072ebe233608/README.md)

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-03-03 17:36:51 +00:00
Dzmitry Malyshau c2265ca4c8 [wgsl] structure declarations, better array types 2020-03-03 11:14:15 -05:00
Joshua Groves 39072c80d4 [rs] Update readme 2020-03-03 00:34:24 -03:30
Joshua Groves 8b19724364 Update logo and move bindings section 2020-03-03 00:10:04 -03:30
Dzmitry Malyshau aba9e8a0f2 Fixup metal type exports 2020-03-02 16:56:15 -05:00
Dzmitry Malyshau 2f0540c6ab Flat type structure (#10) 2020-03-02 16:37:56 -05:00
bors[bot]andBrian Frazho e09b8d58a7 [rs] Merge #184
184: added test to hello-compute example r=kvark a=emmetthebarnraiser

I wasn't exactly sure of the proper way to test async stuff, but this is a strategy that seemed to work for me. Let me know if there is anything you would like me to change, or if this isn't something that you would like to add to the examples!

Co-authored-by: Brian Frazho <befrazho@gmail.com>
2020-03-01 02:43:59 +00:00
Brian Frazho 18b2ae1935 [rs] added test to hello-compute example 2020-02-28 20:50:28 -05:00
Dzmitry Malyshau 246ca018ef [tint] beginning of the front-end based on Pest (#9) 2020-02-28 13:05:24 -05:00
bors[bot]andDzmitry Malyshau 3d896d4ce1 Merge #506
506: Bug 1614702 - WebGPU textures, texture views, and samplers r=gecko a=kvark

This is a commit cherry-picked from #504


Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-02-28 03:09:13 +00:00
Dzmitry Malyshau 7f3036449b Bug 1614702 - WebGPU textures, texture views, and samplers r=jgilbert,webidl,smaug
this change adds an ability to create WebGPU textures, views, and samplers

Differential Revision: https://phabricator.services.mozilla.com/D63595

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/7d59549f2fda3aed3927ab49b940d9024e161798
2020-02-27 12:50:54 -05:00
bors[bot]anddaxpedda 609b745153 [rs] Merge #183
183: Expose `enumerate_adapters`. r=kvark a=daxpedda

Depends on gfx-rs/wgpu#505.

Use case was to give end user the ability to choose which GPU to use for an application.

Co-authored-by: daxpedda <daxpedda@gmail.com>
2020-02-27 12:36:40 +00:00
Dzmitry Malyshau 8c4e60eb81 Add DXIR to readme, more badges 2020-02-26 23:30:45 -05:00
daxpedda f77ce1bec1 [rs] Update wgpu dependency. 2020-02-27 00:45:02 +01:00
bors[bot]anddaxpedda 429ca1d446 Merge #505
505: Expose `Global::enumerate_adapters`. r=kvark a=daxpedda

Expose `enumerate_adapters` to use it in `wgpu-rs`.
Issue was that directly accessing `wgpu-core` wasn't possible because an instantiation of `Global` was needed.

Co-authored-by: daxpedda <daxpedda@gmail.com>
2020-02-26 22:34:40 +00:00
Dzmitry Malyshau 9ca1312617 [spv] rename ParseError to just Error 2020-02-26 17:25:08 -05:00
Dzmitry Malyshau 515f878fa2 Basic image sampling support 2020-02-26 17:10:42 -05:00
Dzmitry Malyshau 20be6876d7 [msl] write down expressions 2020-02-26 15:20:01 -05:00
daxpedda d584105943 [rs] Expose enumerate_adapters. 2020-02-26 16:35:31 +01:00
daxpedda 498176a8a0 Expose Global::enumerate_adapters. 2020-02-26 16:30:29 +01:00
Dzmitry Malyshau 61e0a980c2 Move complex types out into a separate struct 2020-02-26 10:14:10 -05:00
Dzmitry Malyshau 72ecd7b072 Parse decorations 2020-02-25 17:10:42 -05:00
Dzmitry Malyshau 34c59d0371 [msl] improve function I/O declarations 2020-02-25 14:26:23 -05:00
Dzmitry Malyshau 96a12a0c9a Complete the crate rename to Naga 2020-02-25 14:00:51 -05:00
Dzmitry Malyshau b3c75ec1cd [msl] collect function parameters 2020-02-24 22:27:29 -05:00
Dzmitry Malyshau 763014cb43 [msl] write struct definitions 2020-02-24 18:49:19 -05:00
Dzmitry Malyshau 84bc55e3d4 Parse Store, Composite extraction and composing from SPIR-V 2020-02-24 13:38:34 -05:00
Dzmitry Malyshau 17f31ca846 Parse SPIR-V load instruction 2020-02-24 11:34:45 -05:00
Dzmitry Malyshau 62c07782ca Add travis integration 2020-02-24 09:58:30 -05:00
Dzmitry Malyshau e1a6b5aa55 Add README 2020-02-24 09:56:51 -05:00
Dzmitry Malyshau fe654ee8c5 Implement spir-v access chain parsing 2020-02-24 09:04:09 -05:00
Dzmitry Malyshau 132b67898f [rs] Add oxidator to the readme 2020-02-22 22:28:14 -05:00
Dzmitry Malyshau e8a7a86c42 Parse SPIR-V inputs/outputs of entry points 2020-02-21 16:44:22 -05:00
Dzmitry Malyshau 1fc6f89d79 Parse SPIR-V function declarations 2020-02-21 16:27:11 -05:00
Dzmitry Malyshau 2c16742d1b Parse SPIR-V arrays, structs, and constants 2020-02-21 14:02:21 -05:00
Dzmitry Malyshau 54924e5f66 Parse basic types from SPIRV 2020-02-21 10:45:03 -05:00
Dzmitry Malyshau 0e38eef82d Restructure the project with frontends and backends 2020-02-21 08:23:44 -05:00
bors[bot]andKartikaya Gupta 153c7f3f08 Merge #501
501: Update WebGPU to mozilla-central from hg rev 0f1a8e4c6a76b3b0b16902c7fdfe2356c60ca351 r=kvark a=staktrace

This merge commit should get tagged as `mozilla-0f1a8e4c6a76b3b0b16902c7fdfe2356c60ca351`.

Co-authored-by: Kartikaya Gupta <kgupta@mozilla.com>
mozilla-0f1a8e4c6a76b3b0b16902c7fdfe2356c60ca351
2020-02-20 20:53:27 +00:00
Kartikaya Gupta b5ba17012a Update WebGPU to mozilla-central from hg rev 0f1a8e4c6a76b3b0b16902c7fdfe2356c60ca351 2020-02-20 15:49:32 -05:00
bors[bot]andDzmitry Malyshau f387fbb310 [rs] Merge #181
181: Fix vertex_attr_macro self invocation paths r=kvark a=kvark

Follow-up to #179 
cc @dhardy 

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-02-20 18:11:09 +00:00
Dzmitry Malyshau 5490914f19 [rs] Fix vertex_attr_macro self invocation paths 2020-02-20 13:10:14 -05:00
bors[bot]andDiggory Hardy dabdd8ee52 [rs] Merge #179
179: Add vertex_attr_array macro r=kvark a=dhardy

Specifying `VertexAttributeDescriptor` arrays is tedious, and for no good reason. This PR adds a macro to do the job.

All examples tested. Documentation is short but better than the standard for this crate I feel. 😉



Co-authored-by: Diggory Hardy <git@dhardy.name>
2020-02-20 14:38:46 +00:00
Diggory Hardy 028be69693 [rs] Add vertex_attr_array macro 2020-02-20 09:32:38 +00:00