Category : amd-gpu

Consider a vbo with vertices of the format struct Vertex { float x; float y; float z; uint32_t n; }; where n is encoded as GL_INT_2_10_10_10_REV. I wrote a demo with two triangles of such vertices: std::vector<Vertex> vboData; vboData.emplace_back(0.0f, 0.0f, 0.0f, Int2101010RevPacked(1.0f, 0.0f, 0.0f)); vboData.emplace_back(0.5f, 0.0f, 0.0f, Int2101010RevPacked(0.0f, 1.0f, 0.0f)); vboData.emplace_back(0.5f, 0.5f, 0.0f, Int2101010RevPacked(0.0f, 0.0f, ..

Read more

As a mental exercise, I’m trying to write a program which links directly against the GPU driver of my Macbook Pro rather than using Apple’s Metal framework. Some exploration led me to this file (presumably specific to my particular hardware): /System/Library/Extensions/AMDRadeonX6000MTLDriver.bundle/Contents/MacOS/AMDRadeonX6000MTLDriver Running file on it confirms this is a Mach-O 64-bit dynamically linked shared library. ..

Read more