Added flags for Debug build
Added DMaterial buffer for the GPU