<p>I have designed my graphics pipeline, actually similar to what exists now, you know, vertex shader, then rasterizer, interpolation, fragment shader and so on. But, some stuff are changed in my pipeline. Like the rasterization stage. Currently, as I have understood from <a href="https://gabrielgambetta.com/computer-graphics-from-scratch/" rel="nofollow noreferrer">Computer Graphics From Scratch</a>  book ( which I really recommend ) is that, rasterizer interpolates pixel coords, UVs, depth, Normals and etc. on (almost) every pixel.
But I want to change that, <strong>I want to define how the rasterizer should act and how it should interpolate</strong>, but I have no idea how to.
Some people on the web said it's impossible unless you are a driver programmer, then you might have a chance.
I want to make sure that it is possible to distort that code, and maybe edit the whole code of current pipeline.</p>

CC BY-SA 4.0
2023-09-03T07:56:44.967Z
Are you asking for interpolation methods? Therefore take a look at barycentric coordinates and barycentric interpolation.
Thomas
CC BY-SA 4.0
2023-09-03T08:52:10.510Z
@Thomas No, actually. I want to know how can I change the method for interpolation and interpolate using my algorithm. It looks like rasterization stage is immutable according to some graphics APIs like OpenGL and Vulkan.
maziar
CC BY-SA 4.0
2023-09-08T08:59:04.587Z
@YvesDaoust it may sound funny, but I think if I could implement my algorithm, that would be a lot more efficient that the current algorithm. The difference is like rendering a whole object normally, and only rendering the object as wire frame. A LOT of pixels will be discarded, while the rest contain information that will be used to generate the final image,
maziar
<rasterizer><driver>
re-writing the rasterizer of a pipeline
maziar
# re-writing the rasterizer of a pipeline

(Asked by: username_0 on 2023-09-02)

I have designed my graphics pipeline, actually similar to what exists now, you know, vertex shader, then rasterizer, interpolation, fragment shader and so on. But, some stuff are changed in my pipeline. Like the rasterization stage. Currently, as I have understood from [Computer Graphics From Scratch](https://gabrielgambetta.com/computer-graphics-from-scratch/) book ( which I really recommend ) is that, rasterizer interpolates pixel coords, UVs, depth, Normals and etc. on (almost) every pixel.
But I want to change that, **I want to define how the rasterizer should act and how it should interpolate**, but I have no idea how to.
Some people on the web said it's impossible unless you are a driver programmer, then you might have a chance.
I want to make sure that it is possible to distort that code, and maybe edit the whole code of current pipeline.

**Tags:** rasterizer, driver

> **Comments:**
> **username_1**: Are you asking for interpolation methods? Therefore take a look at barycentric coordinates and barycentric interpolation.  
> **username_0**: @username_1 No, actually. I want to know how can I change the method for interpolation and interpolate using my algorithm. It looks like rasterization stage is immutable according to some graphics APIs like OpenGL and Vulkan.  
> **username_0**: @YvesDaoust it may sound funny, but I think if I could implement my algorithm, that would be a lot more efficient that the current algorithm. The difference is like rendering a whole object normally, and only rendering the object as wire frame. A LOT of pixels will be discarded, while the rest contain information that will be used to generate the final image,  

---

## 0 answers

