21,192 questions
-5
votes
0
answers
60
views
Why are geometric transformations expressed as matrix–vector multiplication? [closed]
I’m trying to understand the fundamental reason behind why geometric transformations in computer graphics are usually represented as a matrix multiplied by a vector.
Is it because a matrix is ...
Advice
1
vote
2
replies
32
views
Is optimization done at graphics pipeline creation time between stages?
The reason I'm asking this question is because I have cases in a vertex shader where I have:
layout (location = 0) out float3 outEyeSpacePosition;
layout (location = 1) out float2 out_tex_coords;
And ...
0
votes
1
answer
26
views
Are Vulkan validation layers injected even if they're not enabled on the Vulkan instance?
I discovered something rather surprising to me regarding the Vulkan validation layer that's used for error reporting and debugging. Usually in a debug build I will set the ...
-3
votes
1
answer
69
views
Moving a figure around the screen using control keys [duplicate]
The figure moves in different directions: left, right, up, and down. While moving, it should also fire in the direction it's moving when the space bar is pressed. In this code, when moving to the ...
0
votes
0
answers
71
views
Android logcat spam: TransactionCallbackInvoker writeReleaseFence failed. error 32 (Broken pipe) every frame in SurfaceView
I get this log continuously (every render frame):
E/TransactionCallbackInvoker: [SurfaceView(...)(BLAST)]
writeReleaseFence failed. error 32 (Broken pipe)
It comes from the system (SurfaceFlinger), ...
1
vote
0
answers
41
views
Want to get rid of "jagged teeth" from DTS simulator made in matlab
So I made a program in matlab that numerically simulates a DTS system and its almost right but there's one detail that there's "jagged teeth" in the graphic diagram ( circled in blue ) ...
Advice
0
votes
0
replies
25
views
Early Initialization of GPU, Weston, and Hypervisor Drivers with Deferred Systemd Services & modules
how to configure systemd to load essential graphics and virtualization modules early in the boot process, while deferring non-critical services & modules for manual activation later.
called gpu ...
2
votes
0
answers
57
views
How to render drop shadow like figma in Metal shader
I am new to Graphic programming and shaders and I am working on a Metal fragment shader that downscales a video frame by 20% and adds a soft drop shadow around it to create a depth effect. The shadow ...
-2
votes
0
answers
147
views
Y-axis rotation in python [duplicate]
So I was trying to make a 3d engine from scratch in Python when i tried to rotate the plane. All axes were fine as predefined rotations in 3d space, but when updating rotation in the code, only the x ...
0
votes
0
answers
52
views
Problems with fencing sporadic command buffer submission in Vulkan
I am invoking a compute shader, writing to it, then reading it to then write to disk.
According to renderdoc the image is properly generated. Additionally, when compiled in debug mode I get the right ...
3
votes
2
answers
91
views
What does a min filter do on the same mip level?
In a graphics API like Vulkan, you have VkFilter, which can be NEAREST or LINEAR. Leaving aside the mipmap filtering, which is another thing altogether, I'm trying to understand what the point of the ...
-2
votes
1
answer
118
views
DirectX debug layer dll version mismatch
I was learning directx by https://github.com/d3dcoder/d3d12book, and at one point, it suddenly started not working in Debug mode like this.
So I asked github copilot and he said that the problem was ...
1
vote
1
answer
99
views
Non-uniform access by indexing vs non-uniform access from a switch case or if-else statement
This question is supposed to be in the most general sense possible, this is because I'm using the Slang shading language to apply potentially to multiple graphics APIs.
In OpenGL and Vulkan the ...
2
votes
1
answer
59
views
Are storage buffers bounds-checked by default?
I found a comment on Reddit saying:
SSBO accesses are bound checked at runtime by the shader to prevent
segmentation faults (which is why the descriptor of a SSBO is a
pointer and size). I think this ...
1
vote
0
answers
126
views
Why does mouse look feel jittery in winit + wgpu despite smooth frame rendering?
Code
In the event loop, this arm handles mouse motion with the MouseMotion device event:
Event::DeviceEvent {
event: DeviceEvent::MouseMotion { delta: (dx, dy) },
..
...