#Grenouille - Modern OpenGL behind a D3D11 inspired API

1072 messages ยท Page 2 of 2 (latest)

lucid hare
#

I'm pinging gob

thick goblet
#

i know ๐Ÿ˜„

cursive slate
#

Honestly it's a usable and fine lang

thick goblet
#

the problem with all this crap language is that it WILL lack conveniences i am fmiliar with

cursive slate
#

But ofc it's not super duper innovative or anything

thick goblet
#

i dont care about innovativeness tbqh

cursive slate
#

You're spoiled by C#

thick goblet
#

yeah

#

it has everything for the past 15 years already

cursive slate
#

Maybe rust will tickle your fancy

thick goblet
#

shit which other languages add only now

#

lol no

#

absolutely not

cursive slate
#

That is actually innovative though

#

Hehe

#

And has nice features, supposedly

thick goblet
#

i am suffering quite a bit while reading along NotAPengu'ismssmsms

#

its 0 readable

lucid hare
#

I would like to do C# but my brain can't comprehend the OOPisms

cursive slate
#

It'll help you read other rustaceans' code

thick goblet
#

id rather stay with c++ then

#

and im sorry for putting you guys through my tantrums lol

lucid hare
#

I think it would be cool to do C++ backend and C# for UI schtuff

cursive slate
#

c++ will only teach you brain damage, coming from c# bleakekw

thick goblet
#

yeah

cursive slate
#

but some of it is cool

thick goblet
#

what would be interesting is to have a 1:1 impl of x

#

one in c++ and one in c# and then profile/compare

#

and see if .net is such a bad thing or not like every rust/c/c++ian claims ๐Ÿ˜‰

cursive slate
#

I don't find 1:1 language perf comparisons that interesting

thick goblet
#

i dont mean compare the language, but compare an actual project implementation, an engine/game

lucid hare
thick goblet
#

hehe

#

eel is quite fitting

#

a synonym for brainworm

lucid hare
#

It is literal brain damage

#

Is there any cross platform C# UI ism?

thick goblet
#

Rider

lucid hare
#

I heard C# can do Linux but only a subset

thick goblet
#

wut

lucid hare
#

A UI library I meant

#

That works on Windows and Linux

thick goblet
#

you cant do WinForms/WPF as is

#

but there are other options, Avalonia/Eto

#

if you want your classic UI program thing

#

WinForms is tied to winapi, WPF is tied to dx9

lucid hare
#

Can I do the rendering backend in C++ and the UI in C# with Avalonia?

thick goblet
#

yes

lucid hare
#

It looks really nice

thick goblet
#

for your backend you usually just need some sort of native window handle in order to init your renderer

lucid hare
#

Yeah, so no more GLFW ๐Ÿ˜ฆ

thick goblet
#

BitCrusader and BayBoyKiller are also c# peeps with attempts of interopping

#

Furball and PoltixiTheDerg too iirc

thorny jay
shut rune
#

@thick goblet remember that C# has NativeAOT as well so you get final single exe

#

Usually I write what I can in C# and expose what I need in c layers

#

StbImage, ktx with basisu, miniaudio

#

Yesterday I did cimgui and cimguinodes bindings

thick goblet
#

but i heard of wgpu having a sane api, at the same time it also feels like opengles 4 with azdo sprinkles somehow (i have not actually looked at wgpu at all)

thorny jay
#

wgpu is kinda ehh

#

it has its own shading language (wgsl)

#

which is just not great

thick goblet
#

im dinglefarting around a little again

#
    _swapchain = _device->CreateSwapchain(swapchainDescriptor);
    auto backBuffer = _swapchain->GetBuffer(0);
    backBuffer->SetDebugName("Texture-Swapchain-BackBuffer");

    _defaultRenderTargetView = _device->CreateRenderTargetView(backBuffer, nullptr);
#

the backbuffer is the evil kid

#

i do understand semily what happens here

#

all this code is in a function somewhere, backbuffer is just a local variable, which will be destroyed at the end of the function

#

that means Resource's aka Texture2D's dtor is called and glDeleteTextures is invoked

#

so far so good