Geordie J

Results 57 comments of Geordie J

Hi, thanks for your reply! I'll look into the options and if I can come up with anything generalisable enough to put into SDL_gpu I'll make a pull request.

I just saw the bit about the simple-shader-demo, looks great and it's exactly what I needed to get started. Would be nice to have a kind of stencil interface, but...

Hi @grimfang4, I finally got to trying out the masking shaders. Forgive me if this is a silly question, but how do I get them working with shape rendering? My...

Ok, so I figured out a way of doing what I need as follows: in vec4 originalColour; in vec2 absolutePixelPos; out vec4 fragColor; uniform float maskMinX; uniform float maskMinY; uniform...

I am going to try to change the render code to use the matrix stack instead of blitting absolute positions, I think this may fix the issue I'm having. Sorry...

@grimfang4 On this topic, would you be able to give an overview of SDL_gpu's architecture? For example, does it use the immediate pipeline or is it somehow based on shaders?...

@grimfang4 this is very useful information! I'm now certain that `SDL_gpu` is doing what I'd expect it to internally (assuming it's working as planned). It'd be great to get this...

@grimfang4 thanks for the tip about `context->windowID`, I have just hacked this for now with OS-dependent conditions but will probably have another look at it soon

Ok this seems to come down to the Mac rendering the video in BGRA and the texture being RGBA. If I manually swap the R and B bytes in a...