Comments (7)
FYI, I looked into @kvark's PR and decided to use his repo/branch in my cargo. It turns out that it runs perfectly in Android.
from conrod.
Hey @nmpribeiro, I'd recommend trying to get one of the wgpu examples running first (if you haven't already) and then if those succeed, try and spot any differences between those and the all_winit_wgpu
example that might be causing issues.
from conrod.
@mitchmindtree wgpu
example triangle (I tried the hello-triangle
in android so far) works fine. I am going through conrad_core
and conrad backend wgpu
to try to spot exactly what's causing my fatal error with all_winit_wgpu
.
from conrod.
I have updated to wgpu
v0.10
and it seems to have more meaningful errors.
If I try to force GL
on android:
W/rust-app: wgpu_core::instance: Missing downlevel flags: READ_ONLY_DEPTH_STENCIL | VERTEX_STORAGE
The underlying API or device in use does not support enough features to be a fully compliant implementation of WebGPU. A subset of the features can still be used. If you are running this program on native and not in a browser and wish to limit the features you use to the supported subset, call Adapter::downlevel_properties or Device::downlevel_properties to get a listing of the features the current platform supports.
I/rust-app: wgpu_core::instance: DownlevelCapabilities {
flags: COMPUTE_SHADERS | FRAGMENT_WRITABLE_STORAGE | INDIRECT_EXECUTION | BASE_VERTEX | DEVICE_LOCAL_IMAGE_COPIES | NON_POWER_OF_TWO_MIPMAPPED_TEXTURES | CUBE_ARRAY_TEXTURES | COMPARISON_SAMPLERS | INDEPENDENT_BLENDING,
limits: DownlevelLimits,
shader_model: Sm5,
}
E/rust-app: wgpu::backend::direct: Error in Adapter::request_device: Limit 'max_texture_array_layers' value 2048 is better than allowed 256
I/RustStdoutStderr: thread '<unnamed>' panicked at 'Failed to create device: RequestDeviceError', libs/graphics/src/state.rs:90:14
If I use .all()
backends:
graphics::state: Device and Queue!
W/rust-app: wgpu_hal::vulkan::adapter: Missing extensions: ["VK_EXT_sampler_filter_minmax", "VK_KHR_timeline_semaphore"]
D/rust-app: wgpu_hal::vulkan::adapter: Supported extensions: ["VK_KHR_swapchain"]
I/rust-app: wgpu_hal::vulkan::adapter: Private capabilities: PrivateCapabilities { flip_y_requires_shift: true, imageless_framebuffers: false, image_view_usage: true, timeline_semaphores: false, texture_d24: true, texture_d24_s8: true, can_present: true, non_coherent_map_mask: 63 }
E/rust-app: wgpu::backend::direct: Error in Adapter::request_device: Limit 'max_texture_array_layers' value 2048 is better than allowed 256
I/RustStdoutStderr: thread '<unnamed>' panicked at 'Failed to create device: RequestDeviceError', libs/graphics/src/state.rs:87:14
I will research a bit more what these logs mean, but it seems Concord is trying to use capabilities that my testing android device doesn't have.
from conrod.
@mitchmindtree would you agree this is wgpu
related?
from conrod.
Could conrod
request max_texture_array_layers
value of 256 in the limits instead of the default? We are going to fix the default as well, it matches a recent change in the spec.
from conrod.
I'll wait for conrod
to update to current wgpu
.
from conrod.
Related Issues (20)
- Build failure in `conrod_vulkano` discovered on rasberry pi. HOT 2
- SDL2 backend? HOT 1
- Building on Apple M1 (update `winit`)
- [Bug] Could not compile `conrod_glium` HOT 1
- Tutorial is outdated
- List with multiple widgets as items.
- Inconsistent behaviour of TextEdit and TextBox widgets under conrod_piston vs. other backends
- Dynamic size from window HOT 1
- [Question] Scollable kid canvas
- conrod_glium::Renderer::new(&display) doesn't compile anymore HOT 1
- Doesn't Compile HOT 1
- Scrissor rect should be clamped
- Questions regarding this project
- Is it possible to use conrod in retained mode?
- Is the source code of "JAW - Jen Audio Workstation" published?
- Add `#[must_use]` to widgets
- Is the project still alive? HOT 3
- Stepping away from conrod (alternative GUI recommendations + opening for maintainers within) HOT 7
- Unmaintained Advisory in Rustsec Advisory-DB HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conrod.