summaryrefslogtreecommitdiff
path: root/client/src/ui.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-10 03:23:57 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-10 03:23:57 +0100
commit9446cda10e1a1b82e08d94c9c43a3e024e55c655 (patch)
treed4dfa9b03feb2dc659e81274ad3b1ad3e603fbb6 /client/src/ui.rs
parent5d935c26589c014e6dc2941481988abf50e51fdf (diff)
downloadweareserver-9446cda10e1a1b82e08d94c9c43a3e024e55c655.tar
weareserver-9446cda10e1a1b82e08d94c9c43a3e024e55c655.tar.bz2
weareserver-9446cda10e1a1b82e08d94c9c43a3e024e55c655.tar.zst
ui still no work
Diffstat (limited to 'client/src/ui.rs')
-rw-r--r--client/src/ui.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/client/src/ui.rs b/client/src/ui.rs
index 3687276..69f1081 100644
--- a/client/src/ui.rs
+++ b/client/src/ui.rs
@@ -24,13 +24,12 @@ use std::{collections::HashMap, num::NonZeroU64};
use wgpu::{
BindGroup, BindGroupDescriptor, BindGroupEntry, BindGroupLayout, BindGroupLayoutDescriptor,
BindGroupLayoutEntry, BindingResource, BindingType, BlendState, Buffer, BufferDescriptor,
- BufferUsages, Color, ColorTargetState, ColorWrites, CommandEncoder, CompareFunction,
- DepthBiasState, DepthStencilState, Device, Extent3d, FragmentState, FrontFace, IndexFormat,
- LoadOp, MultisampleState, Operations, PipelineCompilationOptions, PipelineLayoutDescriptor,
- PolygonMode, PrimitiveState, PrimitiveTopology, PushConstantRange, Queue,
- RenderPassColorAttachment, RenderPassDescriptor, RenderPipeline, RenderPipelineDescriptor,
- SamplerBindingType, SamplerDescriptor, ShaderStages, StencilState, StoreOp, Texture,
- TextureDescriptor, TextureDimension, TextureFormat, TextureSampleType, TextureUsages,
+ BufferUsages, ColorTargetState, ColorWrites, CommandEncoder, Device, Extent3d, FragmentState,
+ FrontFace, IndexFormat, LoadOp, MultisampleState, Operations, PipelineCompilationOptions,
+ PipelineLayoutDescriptor, PolygonMode, PrimitiveState, PrimitiveTopology, PushConstantRange,
+ Queue, RenderPassColorAttachment, RenderPassDescriptor, RenderPipeline,
+ RenderPipelineDescriptor, SamplerBindingType, SamplerDescriptor, ShaderStages, StoreOp,
+ Texture, TextureDescriptor, TextureDimension, TextureFormat, TextureSampleType, TextureUsages,
TextureView, TextureViewDescriptor, TextureViewDimension, VertexAttribute, VertexBufferLayout,
VertexFormat, VertexState, VertexStepMode, include_wgsl,
util::{DeviceExt, TextureDataOrder},
@@ -122,7 +121,7 @@ impl UiRenderer {
shader_location: 1,
},
VertexAttribute {
- format: VertexFormat::Float32x3,
+ format: VertexFormat::Uint32,
offset: size_of::<f32>() as u64 * 4,
shader_location: 2,
},