by skocznymroczny · 6y ago · 0 comments
glBeginState(&stateObj); glEnable(GL_BLEND); glDepthTest(GL_LEQUAL); glEndState(&stateObj);
and then later on you'd do glBindState(&stateObj) to apply it.
I have high hopes for WebGPU though and I am going to migrate my renderer to it soon.