示例#1
0
 private static ulong NativeCreateVertexBuffer(VertexFormat vf, void *buffer, uint vertexCount)
 {
     return(s_retainedRenderResources.CreateVertexBuffer(
                buffer,
                vertexCount * vf.GetSize(),
                (uint)vf));
 }
示例#2
0
 public static byte CalculateStride(this VertexFormat _this, Version version, int dimention)
 {
     return((byte)(_this.GetSize(version) * dimention));
 }
示例#3
0
 private static ulong NativeCreateVertexBuffer(VertexFormat vf, void* buffer, uint vertexCount) 
 {
     return s_retainedRenderResources.CreateVertexBuffer(
         buffer,
         vertexCount * vf.GetSize(),
         (uint)vf);
 }