Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 04 14:51
    cwfitzgerald closed #2656
  • Nov 04 14:51
    cwfitzgerald commented #2656
  • Nov 04 13:04
    Asubayo commented #2656
  • Oct 21 18:50
    vmarcella closed #3789
  • Oct 21 18:49
    vmarcella opened #3789
  • Aug 24 22:54
    buzmeg closed #2342
  • Aug 24 22:54
    buzmeg commented #2342
  • Jul 26 08:12
    lazytiger opened #3788
  • Mar 29 16:54
    schwa423 edited #3787
  • Mar 29 16:48
    schwa423 edited #3787
  • Mar 28 19:37
    schwa423 edited #3787
  • Mar 28 19:35
    schwa423 opened #3787
  • Feb 27 21:48
    cwfitzgerald closed #3786
  • Feb 27 21:47
    cwfitzgerald commented #3786
  • Feb 27 20:33
    IronThread commented #3786
  • Feb 27 19:39
    cwfitzgerald commented #3786
  • Feb 27 18:01
    IronThread opened #3786
  • Feb 07 12:10
    divinerapier commented #3289
  • Aug 24 2021 07:16
    procedural commented #3432
  • Aug 03 2021 21:58

    kvark on master

    added support for aarch64 ios s… (compare)

Brendan Zabarauskas
@brendanzab
not sure what it would look like
perhaps we should look to piston?
ember arlynx
@emberian
oh, also, @bvssvni was asking in #rust-gamedev earlier about gfx-rs's plans, to help plan for piston.
Dzmitry Malyshau
@kvark
I see he's got some ideas on the high-level interfaces (catching up on reddit...)
ember arlynx
@emberian
Hm, it's very difficult to break the circular dependency between device and gldevice.
Due to the lack of associated types.
device uses types gldevice defines, gldevice implements traits device defines...
Dzmitry Malyshau
@kvark
macro gods are kind to me today, I've got the shader link construction implemented:
struct Params {
    b: gfx::BufferHandle,
    x: int,
    t: gfx::TextureHandle,
}
struct _ParamsLink {
    b: ::gfx::BlockVarId,
    x: ::gfx::UniformVarId,
    t: ::gfx::TextureVarId,
}
#[automatically_derived]
impl ::gfx::ShaderParam<_ParamsLink> for Params {
    fn create_link<S: ::gfx::ParameterSink>(__arg_0: &S) ->
     Result<_ParamsLink, ::gfx::ParameterLinkError> {
        ::std::result::Ok(_ParamsLink{b: __arg_0.find_block("b").unwrap(),
                                      x: __arg_0.find_uniform("x").unwrap(),
                                      t: __arg_0.find_texture("t").unwrap(),})
    }
}
It's not processing the result properly yet though
Brendan Zabarauskas
@brendanzab
@cmr yeah, the circular dependency concerns me
@kvark ooh neat
Dzmitry Malyshau
@kvark
@bjz it may seem so trivial if you look at this, but the amount of code (and effort) is stunning
ember arlynx
@emberian
@kvark can I take #50?
Just trying to find something to do
Can't write useful code with it until your shader parameter stuff is done :P
Or maybe I will try and set up a blog...
Oh yes that was what I wanted to do.
@bjz create a gfx-rs organization and migrate the repos to it?
org created
you two are owners I think
Dzmitry Malyshau
@kvark
@cmr sure, feel free to tackle #50. I'm gonna be busy with shader parameters for some time... BTW, the current system still works, so you should be able to write useful code.
ember arlynx
@emberian
bbl, dinner.
Dzmitry Malyshau
@kvark
@bjz how do we move gfx-rs into the organization?
funny how we, members, are listed: Brendan, Corey, Dzmitry. Don't you think we are missing an A here (Andrey @ozkriff) ? ;)
Coraline Sherratt
@removed~csherratt
:/ I don't think Cargo is mature enough for gfx-rs yet
It assumes that there is only one library per crate I think
ember arlynx
@emberian
@csherratt one crate per project, but you can put multiple Cargo.toml, one for each subdirectory.
It will look in the right place.
Brendan Zabarauskas
@brendanzab
@cmr you have the org now?
I am wondering if we should have an org per project...
:/
ember arlynx
@emberian
@bjz you are also an owner
of the org
Dzmitry Malyshau
@kvark
@cmr is it possible to "transfer" the project? or do we need to re-create it?
ember arlynx
@emberian
Yes.
@bjz can go into the repo admin page and do a transfer
Dzmitry Malyshau
@kvark
I suppose the same happened to rust at some point. I kinda like the automatic redirection that happened afterwards
Dzmitry Malyshau
@kvark
Got the proper parameter link errors now:
#[automatically_derived]
impl ::gfx::ShaderParam<_ParamsLink> for Params {
    fn create_link<S: ::gfx::ParameterSink>(__arg_0: &S) ->
     Result<_ParamsLink, ::gfx::ParameterLinkError<'static>> {
        ::std::result::Ok(_ParamsLink{b:
                                          match __arg_0.find_block("b") {
                                              Some(_p) => _p,
                                              None =>
                                              return ::std::result::Err(::gfx::LinkMissingBlock("b"))
                                          },
                                      x:
                                          match __arg_0.find_uniform("x") {
                                              Some(_p) => _p,
                                              None =>
                                              return ::std::result::Err(::gfx::LinkMissingUniform("x"))
                                          },
                                      t:
                                          match __arg_0.find_texture("t") {
                                              Some(_p) => _p,
                                              None =>
                                              return ::std::result::Err(::gfx::LinkMissingTexture("t"))
                                          },})
    }
}
ember arlynx
@emberian
:ear_of_rice:
Dzmitry Malyshau
@kvark
@cmr what does that mean? too much code?
ember arlynx
@emberian
I have no idea.
I just picked a random emoji
Dzmitry Malyshau
@kvark
I'm really excited about this system. It's gonna be the greatest shader parameter architecture I've ever worked with. Kudos to @csherratt for the vision!
ember arlynx
@emberian
Agree! Yay Rust!
Do you think it will be done this weekend? :horse_racing:
Dzmitry Malyshau
@kvark
@cmr If I had the whole day in my disposal - yes, but there is a lot of stuff I need to do family-wise, so please expect the PR next week.
ember arlynx
@emberian
Ok
Dzmitry Malyshau
@kvark
@cmr besides, It will not work until rust-lang/rust#15814 is merged
ember arlynx
@emberian
@kvark greased the wheels a bit for that one :sparkles:
Dzmitry Malyshau
@kvark
@cmr :fast_forward: :fast_forward: :fast_forward: thanks!