pub fn convert_primitive_state(
    primitive_state: &GPUPrimitiveState
) -> PrimitiveState