Commit Graph

  • 4816a2d1bd refactor!: suppress dead_code in wgpu::util::DownloadBuffer (#5917) Erich Gubler 2024-07-04 21:33:21 -06:00
  • f02ec0e4e8 test: fix wgpu-test building by itself (#5912) Erich Gubler 2024-07-04 21:31:37 -06:00
  • 5c29ad548b refactor: vertex_index_common: use size_of_val instead of magic number Erich Gubler 2024-06-18 15:53:56 -04:00
  • 764b15a556 refactor: vertex_index_common: elide tests alloc. w/ Itertools::cartesian_product Erich Gubler 2024-06-18 15:53:56 -04:00
  • 7600c61b72 refactor: vertex_index_common: use strum enum iter. Erich Gubler 2024-06-18 15:53:56 -04:00
  • 9f34acd567 [wgpu-hal] return None in Adapter.surface_capabilities() if the Surface and the Adapter don't share the same WebGL2 context teoxoy 2024-07-03 13:28:16 +02:00
  • 7910fd8059 [wgpu-hal] require a Surface to be passed to Instance.enumerate_adapters() on WebGL2 teoxoy 2024-07-03 13:25:29 +02:00
  • 37f283688a [example hello] Produce output when run in the usual way. Jim Blandy 2024-07-03 08:36:18 -07:00
  • 3a6814770a Allow unconsumed inputs in fragment shaders (#5531) Imbris 2024-07-04 03:08:46 -04:00
  • e26d2d7763 move command buffer resolving in Global's methods teoxoy 2024-07-03 08:59:30 +02:00
  • a9c74f42d6 use Surface.get_capabilities in all relevant places teoxoy 2024-07-02 21:01:41 +02:00
  • ef7d27233e use a read guard instead of write teoxoy 2024-07-02 20:42:41 +02:00
  • eb0eb342cf unregister adapters like all other resources teoxoy 2024-07-02 20:06:03 +02:00
  • 5b2e78da45 cleanup adapter usages within the Device teoxoy 2024-07-02 20:02:35 +02:00
  • 4f6223534f take guard to render bundles at the top of resolve_render_command_ids teoxoy 2024-07-02 19:20:38 +02:00
  • addd80ccd3 replace Registry.read().get_owned() with Registry.get() teoxoy 2024-07-02 19:20:02 +02:00
  • 3df4c8a502 remove unused std::ops::Index impl for Storage teoxoy 2024-07-02 19:07:58 +02:00
  • 9308e15048 use Storage.get_owned in cases where we used to later clone the resource anyway teoxoy 2024-07-02 19:07:17 +02:00
  • 249c8023ff simplify State.set_bind_group teoxoy 2024-07-02 18:45:19 +02:00
  • dbcb273188 remove StatelessTracker.add_single teoxoy 2024-07-02 18:35:23 +02:00
  • 39a268c624 remove FutureId.assign_existing teoxoy 2024-07-02 18:05:49 +02:00
  • cd9f003477 move Device.set_queue call in create_device_and_queue_from_hal teoxoy 2024-07-02 17:42:51 +02:00
  • 96255d484f change FutureId.assign to not return a clone of the resource passed to it teoxoy 2024-07-02 17:32:27 +02:00
  • 7f3e1bba14 move code after calls to FutureId.assign inside Device fns teoxoy 2024-07-02 17:23:00 +02:00
  • 40022c1584 remove duplicate check, it's already present in Device.create_texture_view teoxoy 2024-07-02 16:58:40 +02:00
  • dc55cb436c add Texture::new fn teoxoy 2024-07-02 16:47:35 +02:00
  • 53c79bdf7a move buffer creation logic in a new Device method teoxoy 2024-07-02 15:43:27 +02:00
  • 029168f14a remove no-op, calling schedule_resource_destruction with last_submit_index: !0 does nothing teoxoy 2024-07-02 15:41:19 +02:00
  • a971e7f7d4 remove duplicate check, it's already present in Device.create_buffer teoxoy 2024-07-02 15:36:33 +02:00
  • 7b387007a8 make Device.create_buffer return an Arc<Buffer> teoxoy 2024-07-02 15:17:39 +02:00
  • b8c5b2275e don't clone resources for ResourceMetadataProvider::Direct teoxoy 2024-07-02 15:06:34 +02:00
  • 69b44c6a32 gate fns behind either serde or replay since Firefox needs those teoxoy 2024-07-02 12:29:26 +02:00
  • b61be30e53 move out ID to resource mapping code from Device.create_bind_group teoxoy 2024-07-02 12:20:15 +02:00
  • 1be51946e3 move out ID to resource mapping code from pipeline creation methods teoxoy 2024-07-02 11:26:00 +02:00
  • d8b0b5975d assign resources/errors in the Global's pipeline creation functions teoxoy 2024-07-01 19:00:48 +02:00
  • 79b15b8de8 move out ID to BGL mapping from Device.create_pipeline_layout() teoxoy 2024-07-01 13:27:54 +02:00
  • 1f6ac35e83 change Storage.force_replace to take an Arc<T> teoxoy 2024-07-01 12:43:26 +02:00
  • 896418c740 Panic on non-existent entry in Storage.get, this is consistent with Element::Vacant teoxoy 2024-07-01 12:19:06 +02:00
  • 16c7d84d63 remove Registry.try_get() teoxoy 2024-07-01 12:08:05 +02:00
  • b904e2c759 use Registry.get() for device_set_device_lost_closure teoxoy 2024-07-01 11:37:51 +02:00
  • c4d71d9af5 use Registry.get() instead of Registry.read().get_owned() teoxoy 2024-07-01 11:12:31 +02:00
  • 3547138716 remove PrettyError teoxoy 2024-06-28 19:35:15 +02:00
  • 08b8e96c40 move ContextError's fmt logic in its Display impl teoxoy 2024-06-28 19:25:58 +02:00
  • df7a6defa8 don't print the scope twice teoxoy 2024-06-28 19:14:37 +02:00
  • ed1e8ecf4b remove label getters from Global teoxoy 2024-06-28 19:09:43 +02:00
  • 9d3d4ee297 implement exclusive pipeline validation teoxoy 2024-06-28 17:38:15 +02:00
  • 4a19ac279c introduce MultiError and use it for BGL incompatibility errors teoxoy 2024-06-28 13:33:02 +02:00
  • 42e16c7e7d simplify logic of Entry.is_valid teoxoy 2024-06-27 19:31:17 +02:00
  • 0d539874ed simplify the BGL compatibility check teoxoy 2024-06-27 19:16:16 +02:00
  • 9ec0f45efd move the BGL compatibility check in the binder teoxoy 2024-06-27 19:12:12 +02:00
  • ca0027d12b use ResourceErrorIdent in a few buffer error variants teoxoy 2024-06-27 18:42:12 +02:00
  • 2fe761f7e3 remove MissingCopySrcUsageFlag error variant teoxoy 2024-06-27 18:34:05 +02:00
  • 1841857fea use .check_usage() for QUERY_RESOLVE teoxoy 2024-06-27 18:29:36 +02:00
  • 4df5474c9c remove MissingCopyDstUsageFlag error variants teoxoy 2024-06-27 18:24:41 +02:00
  • a4bb5dff2b rename error variants that contain IDs teoxoy 2024-06-27 18:04:53 +02:00
  • 6fe041d544 make Queue.device non-optional teoxoy 2024-06-27 17:42:54 +02:00
  • f34f7eb658 impl ParentDevice via macro teoxoy 2024-06-27 17:01:20 +02:00
  • c3ebfde302 remove Resource trait teoxoy 2024-06-27 16:50:45 +02:00
  • c63f0a02f2 introduce Trackable trait teoxoy 2024-06-27 16:39:01 +02:00
  • ae7da8f669 introduce Labeled trait teoxoy 2024-06-27 14:51:46 +02:00
  • 985968fd38 remove unused Resource bound teoxoy 2024-06-26 17:45:07 +02:00
  • 727956fcde introduce StorageItem trait teoxoy 2024-06-26 16:46:39 +02:00
  • 90f7377cc9 introduce ResourceType trait teoxoy 2024-06-26 16:23:08 +02:00
  • a422d1cba2 remove ResourceInfo.id teoxoy 2024-06-26 13:58:03 +02:00
  • 66777cc80d remove PassErrorScope::PassEncoder and id arg of PassErrorScope::Pass teoxoy 2024-06-26 13:21:40 +02:00
  • d26aef554e use .error_ident() for log::trace! in render_pass_end teoxoy 2024-07-02 10:02:56 +02:00
  • fc6fe76fce trace only render_pass_end_with_unresolved_commands teoxoy 2024-06-25 11:37:15 +02:00
  • 981db9be33 trace only compute_pass_end_with_unresolved_commands teoxoy 2024-06-20 20:43:51 +02:00
  • f25e07b984 Fix soundness issue with Snatchable Nicolas Silva 2024-07-01 18:12:50 +02:00
  • 0a76c0fa84 Renderpass take resource ownership (#5884) Andreas Reich 2024-07-01 18:36:24 +02:00
  • c9a2d972ad buffer size mismatch: more detail in error message (#5858) Christofer Nolander 2024-07-01 13:10:37 +02:00
  • 9d12a0a122 build(deps): bump the patch-updates group across 1 directory with 27 updates (#5895) dependabot[bot] 2024-07-01 10:51:47 +02:00
  • 92c8cf415c remove bind group id from set bind group scope teoxoy 2024-06-26 13:02:25 +02:00
  • f54b354021 use .validate_dynamic_bindings() in render bundle's set_bind_group teoxoy 2024-06-26 12:52:11 +02:00
  • a2c60cea4f remove render pipeline id from set render pipeline scope teoxoy 2024-06-26 12:36:05 +02:00
  • ab1fa7d96e remove compute pipeline id from set compute pipeline scope teoxoy 2024-06-26 12:07:52 +02:00
  • 400372ff57 remove buffer id from set index/vertex buffer scopes teoxoy 2024-06-26 12:02:25 +02:00
  • 287d8ee414 move pipeline ident to appropriate errors teoxoy 2024-06-26 11:57:19 +02:00
  • d0e63c5c05 move pipeline ident to DispatchError::IncompatibleBindGroup teoxoy 2024-06-26 11:11:49 +02:00
  • 1e9844af29 extract execute_bundle from render_pass_end_impl teoxoy 2024-06-26 10:34:54 +02:00
  • 3c389b9057 resolve occlusion query set prior to render_pass_end_impl teoxoy 2024-06-26 10:31:39 +02:00
  • f7160e71ec extract write_timestamp from render_pass_end_impl teoxoy 2024-06-25 17:38:07 +02:00
  • 02f91167d9 extract insert_debug_marker from render_pass_end_impl teoxoy 2024-06-25 17:24:23 +02:00
  • 10cf23b511 extract pop_debug_group from render_pass_end_impl teoxoy 2024-06-25 17:20:51 +02:00
  • 4edebc6444 extract push_debug_group from render_pass_end_impl teoxoy 2024-06-25 17:19:07 +02:00
  • c42c02e801 extract multi_draw_indirect_count from render_pass_end_impl teoxoy 2024-06-25 16:29:49 +02:00
  • df08509306 extract multi_draw_indirect from render_pass_end_impl teoxoy 2024-06-25 16:26:08 +02:00
  • e92fac087b extract draw_indexed from render_pass_end_impl teoxoy 2024-06-25 16:21:47 +02:00
  • 1226589f07 extract draw from render_pass_end_impl teoxoy 2024-06-25 16:19:06 +02:00
  • a79ac34b15 extract set_scissor from render_pass_end_impl teoxoy 2024-06-25 16:16:22 +02:00
  • b295a4578c extract set_push_constant from render_pass_end_impl teoxoy 2024-06-25 16:13:22 +02:00
  • 63e55cea56 extract set_viewport from render_pass_end_impl teoxoy 2024-06-25 16:09:11 +02:00
  • 5c941bf1f0 extract set_stencil_reference from render_pass_end_impl teoxoy 2024-06-25 16:04:40 +02:00
  • 49800c30de extract set_blend_constant from render_pass_end_impl teoxoy 2024-06-25 16:04:02 +02:00
  • 6cb18ed072 extract set_vertex_buffer from render_pass_end_impl teoxoy 2024-06-25 16:01:18 +02:00
  • ae65b708fa extract set_index_buffer from render_pass_end_impl teoxoy 2024-06-25 15:58:36 +02:00
  • 36e5381531 extract set_pipeline from render_pass_end_impl teoxoy 2024-06-25 15:54:57 +02:00
  • bc683fae3a extract set_bind_group from render_pass_end_impl teoxoy 2024-06-25 15:51:07 +02:00
  • cbe4b67367 put all state in State teoxoy 2024-06-25 15:45:30 +02:00
  • f0f61d9bb6 move the raw encoder in State teoxoy 2024-06-25 15:22:13 +02:00