Search found 3850 matches

by chili
October 1st, 2019, 5:27 pm
Forum: Everything
Topic: Multidimensional Array
Replies: 7
Views: 88

Re: Multidimensional Array

You need to read up on pointer decay of arrays. https://stackoverflow.com/questions/1461432/what-is-array-decaying you don't pass arrays by value, they become pointers. If you wanna avoid that, use std::array<std::array>, or pass the array by reference. Passing by reference will lock you down to a s...
by chili
October 1st, 2019, 10:44 am
Forum: Everything
Topic: Multidimensional Array
Replies: 7
Views: 88

Re: Multidimensional Array

The problem, is this.
by chili
October 1st, 2019, 10:42 am
Forum: Everything
Topic: Dealing with debugging and the learning curve?
Replies: 3
Views: 52

Re: Dealing with debugging and the learning curve?

Yup, you clacked the wrong place and set up a breakpoint by accident :D

If you're really buttfucked over this one, just skip over to Tutorial 7 and you'll learn about what this shit is all about.
by chili
September 27th, 2019, 10:58 am
Forum: Everything
Topic: 3D Fundamentals [Pixel Shader] Tutorial 9
Replies: 7
Views: 108

Re: 3D Fundamentals [Pixel Shader] Tutorial 9

Can't stop, won't stop.
by chili
September 27th, 2019, 10:58 am
Forum: Everything
Topic: A quick question on reference initialisation
Replies: 5
Views: 77

Re: A quick question on reference initialisation

Did you copy that code or like type it out again. Because privare is not a C++ keyword ;)
by chili
September 26th, 2019, 4:45 pm
Forum: Everything
Topic: Got tired of naming things
Replies: 5
Views: 137

Re: Got tired of naming things

Idk about too many temporaries. I guess the best way is to write up something minimal and examine the output in Godbolt.
by chili
September 26th, 2019, 4:41 pm
Forum: Everything
Topic: 3D Fundamentals [Pixel Shader] Tutorial 9
Replies: 7
Views: 108

Re: 3D Fundamentals [Pixel Shader] Tutorial 9

It was probably a slight missed opportunity there to not better mimic the constant buffer arrangement of hardware APIs.
by chili
September 26th, 2019, 4:39 pm
Forum: Everything
Topic: What the default behavior should be
Replies: 2
Views: 56

Re: What the default behavior should be

Theoretically I guess it seems possible. Mostly it's probably just really hard to implement. Constraining what can and cannot be executed at compile time makes the implementer's job attainable, and adding the constexpr keyword enables the compiler to verify that your intentions are possible to carry...
by chili
September 16th, 2019, 4:46 am
Forum: Everything
Topic: Got tired of naming things
Replies: 5
Views: 137

Re: Got tired of naming things

So dilemma number one is: Seeing as how each one of these operations is going to take parameters by *value, calling each one will create copies before executing the intrinsic used inside each function, so is it even worth the effort to create such a library? I wouldn't assume that just because para...
by chili
September 14th, 2019, 5:56 am
Forum: Everything
Topic: Got tired of naming things
Replies: 5
Views: 137

Re: Got tired of naming things

Doing some SIMD stuff again I see ;)