pyramid for directx