im wondering if it was intended to be put in GPU memory and GPUs were intended to be built to execut
im wondering if it was intended to be put in GPU memory and GPUs were intended to be built to execute commands from some internal buffer

The GPU will not respond to more commands, most likely because some other application submitted invalid commands. The calling application should re-create the device and continue. (0x887A0007)I googled around, but didn't find any proper solution


absoluteTime is window.Time
#version 330 core
// The coordinate this fragment should map to
in vec2 fUv;
uniform sampler2D uTexture;
out vec4 gl_Color;
void main() {
vec4 texColor = texture(uTexture, fUv);
if (texColor.a < 0.1) {
discard;
}
gl_Color = texColor;
}public class Camera {
private readonly IWindow window;
public Vector3 Position { get; set; }
public Vector3 LookTarget { get; set; }
public Vector3 Direction => Vector3.Normalize(Position - LookTarget);
public Vector3 Right => Vector3.Normalize(Vector3.Cross(Vector3.UnitY, Direction));
public Vector3 Up => Vector3.Cross(Direction, Right);
public Matrix4x4 ViewMatrix => Matrix4x4.CreateLookAt(
Position, LookTarget, Up
);
public Matrix4x4 ProjectionMatrix => Matrix4x4.CreatePerspectiveFieldOfView(
MathHelper.DegreesToRadians(45), window.Size.X / window.Size.Y, 0.1f, 100
);
public Camera(IWindow window) {
this.window = window ?? throw new ArgumentNullException(nameof(window));
// Start a few units away from the center of the scene so the contents can be seen
Position = new Vector3(0, 0, 3);
LookTarget = Vector3.Zero;
}
}var rotationAngle = MathHelper.DegreesToRadians((float) (absoluteTime * 100));
var modelMatrix = Matrix4x4.CreateRotationX(rotationAngle) * Matrix4x4.CreateRotationY(rotationAngle);absoluteTimewindow.Time