These are chat archives for bjz/gfx-rs

28th
Jun 2014
Dzmitry Malyshau
@kvark
Jun 28 2014 04:13
Ok, I believe #23 is ready to merge now. There is no actual binding of the program resources yet, but at least I guarantee that everything we need is collected properly in ProgramMeta.
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:13
o/
At mozilla ready for the spinning trianglethon
I wonder if we can get gfx-rs working with cargo
sorry for being silent for a few days
@csherratt thanks for clarifying!
@csherratt I was curious as to what your intentions were - I was worried about duplicating some of your efforts
@kvark reading your patch now
Dzmitry Malyshau
@kvark
Jun 28 2014 18:16
@bjz care to share a bit on what's happened first?
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:17
oh yeah I basically just stressed myself out into a nervous wreck :P
Dzmitry Malyshau
@kvark
Jun 28 2014 18:17
@bjz Thought so... Glad you are back with us!
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:18
haha
Dzmitry Malyshau
@kvark
Jun 28 2014 18:18
Was it a panic attack? My wife once got it.
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:20
not really - I have had plenty of panic attacks before - mainly just anxiety
but yeah - will be super excited to get some stuff done today
I wonder if we can get you on video call, haha
Dzmitry Malyshau
@kvark
Jun 28 2014 18:21
has the hackaton started already?
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:21
no, I am early
Dzmitry Malyshau
@kvark
Jun 28 2014 18:22
dunno if my cam works, and if child allows, but we can try ;)
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:22
11:22 - starts at 12:00
so yeah, if I can get cargo working it will be much awesome
Dzmitry Malyshau
@kvark
Jun 28 2014 18:23
Well I created a bunch of issues already (#24 just now) that require thought, good design, and solid implementations. You should not have a shortage of tasks for gfx-rs for sure ;)
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:24
I might have to ask @cmr for some help though
yes
Dzmitry Malyshau
@kvark
Jun 28 2014 18:25
Would be even more exciting if @cmr joins the crowd!
Coraline Sherratt
@removed~csherratt
Jun 28 2014 18:26
I can supply cats
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:30
@kvark do we even need a initialization error for now?
Dzmitry Malyshau
@kvark
Jun 28 2014 18:30
where?
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:30
for gfx::start
Dzmitry Malyshau
@kvark
Jun 28 2014 18:31
we don't seem to be using it
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:32
I mean, the errors seem to come from initing glfw, but that is separate
Dzmitry Malyshau
@kvark
Jun 28 2014 18:33
nice
@bjz I guess you can remove InitError
Dzmitry Malyshau
@kvark
Jun 28 2014 18:53
@bjz in this Metal triangle example vertex data looks very much the same as in GL, draw call is also the same (drawPrimitives(0,3)), the only real difference I see is that there is no notion of shader program... Gnm has it implemented this way as well, and I supposed DX11 too, so everyone but GL?.. Hence, that is a problem with our shader abstraction - just something to think about.
Brendan Zabarauskas
@brendanzab
Jun 28 2014 18:53
yeah, the shaders are pre-compiled into libs
Brendan Zabarauskas
@brendanzab
Jun 28 2014 19:04
I think you can build up some sort of set of pipeline builder objects on different threads, then send them to a command queue
@photex beep
@photex gonna join in on the spinning trianglethon?
Coraline Sherratt
@removed~csherratt
Jun 28 2014 19:08
Not a goo
Not a good time to break X
Brendan Zabarauskas
@brendanzab
Jun 28 2014 19:10
?
brendanzab @bjz cannot parse @csherratt's comments
Coraline Sherratt
@removed~csherratt
Jun 28 2014 19:11
Driver update did not go well. I am now on a smart phone.
Brendan Zabarauskas
@brendanzab
Jun 28 2014 19:11
:(
@photex ^
@csherratt ^
Dzmitry Malyshau
@kvark
Jun 28 2014 19:22
@bjz I'll keep an eye on gitter and GH activity, but will not participate in the vidyo room. Have a good time hacking!
Brendan Zabarauskas
@brendanzab
Jun 28 2014 19:22
aww, I wanted to see your face for once!
Dzmitry Malyshau
@kvark
Jun 28 2014 19:25
@bjz sorry, my linux lappy is a flash-free environment, and my macmini doesn't have a webcam. You can still see my face on linkedin ;) Besides, you didn't show up either!
just wondering, is the goal of the hackaton to get the triangle spinning?
Brendan Zabarauskas
@brendanzab
Jun 28 2014 19:39
yes!
still figuring out your patch
I think it might be good to have a simple triangle example, then one with the more complex stuff you added
I'm wondering if we should move to #rust-gamedev for the meetup
@kvark aslo, do you know about the bitflags! macro?
might be useful for some bitfield thingies in the messages
Brendan Zabarauskas
@brendanzab
Jun 28 2014 19:45
@kvark could you join the irc?
Dzmitry Malyshau
@kvark
Jun 28 2014 19:46
@bjz do you propose to have a spinning textured triangle as a separate sample? I'm good with it, sure. As for the bitflags - I considered it and rejected. If the ShaderStage type is a bitflag, then passing it for shader creation makes it less secured comparing to enum, because the user may pass Vertex | Fragment or something along these lines. Please correct me if that's wrong. I haven't figured out the best way to store block usage yet, but good thing is - it's not required for anything at the moment, so we can postpone the solution.
Brendan Zabarauskas
@brendanzab
Jun 28 2014 19:47
parse_storage is nice :)
@bvssvni o/
Dzmitry Malyshau
@kvark
Jun 28 2014 19:47
@bjz thanks! it's one of the brightest spots in the CL
@bvssvni hi Sven!
Brendan Zabarauskas
@brendanzab
Jun 28 2014 19:48
I wonder if there is a better name for it though - I don't really understand what it does
could you add some more docs to your patch?
@bvssvni we are chatting about #23
Dzmitry Malyshau
@kvark
Jun 28 2014 19:48
@bjz I agree there is very little documentation that I put in. Please let me know what needs to be covered other than parse_storage.
@bjz this function takes GL enum that describes either a vertex attribute format or a uniform parameter format, and deconstructs it into our strongly typed representation
Brendan Zabarauskas
@brendanzab
Jun 28 2014 19:54
@kvark what do you think of cgmath#93?
Dzmitry Malyshau
@kvark
Jun 28 2014 19:55
@bjz I pretty much expressed my thoughts on #93 already. A simple map() would be much better than the whole PR
Brendan Zabarauskas
@brendanzab
Jun 28 2014 20:01
agreed
Dzmitry Malyshau
@kvark
Jun 28 2014 20:11
Sorry, I'm unable to either follow IRC or write documentation at the moment... If I were you, I'd accept my PR and start looking for the way to provide UBO params, then update mvp matrix into one of these buffers each frame.
Brendan Zabarauskas
@brendanzab
Jun 28 2014 20:17
awesome
Brendan Zabarauskas
@brendanzab
Jun 28 2014 20:31
@kvark merged!
Sven Nilsen
@bvssvni
Jun 28 2014 20:37
@kvark hi!
Dzmitry Malyshau
@kvark
Jun 28 2014 20:38
Saw that, thanks! You can also just provide the matrix as a uniform. That would be easier to get quickly but more difficult to get right...
Brendan Zabarauskas
@brendanzab
Jun 28 2014 21:10
@kvark create_object - can we use a Result for that?
Dzmitry Malyshau
@kvark
Jun 28 2014 21:11
@bjz not really. There might be a useful log message even if the compilation/linkage succeeds
Brendan Zabarauskas
@brendanzab
Jun 28 2014 21:11
ah interesting
do they have warnings sometimes?
Dzmitry Malyshau
@kvark
Jun 28 2014 21:12
I've seen those, yeah
Brendan Zabarauskas
@brendanzab
Jun 28 2014 21:12
awesome - didn't know that
I'll add some docs