public H1VertexStreamComponent(H1VertexStreamSematicType type, H1VertexElementType elementType, int offset)
 {
     m_VertexStreamComponentType = type;
     m_VertexElementType         = elementType;
     m_Stride = Convert.ToInt32(H1RHIDefinitionHelper.ElementTypeToSize(elementType));
     m_Offset = offset;
 }
Ejemplo n.º 2
0
 public H1Texture2D(H1GPUResourceManager manager, uint index, H1PixelFormat elementType, int width, int height)
     : base(manager, Convert.ToUInt32(H1RHIDefinitionHelper.ElementTypeToSize(elementType) * width * height))
 {
     m_Index = index;
     m_Description.Format = elementType;
     m_Description.Width  = Convert.ToUInt32(width);
     m_Description.Height = Convert.ToUInt32(height);
     // @TODO - I need to add initial variables like NumMips, NumSamples and TextureName
 }