2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* VertexElement.h *
|
|
|
|
* *
|
|
|
|
* XFX::Graphics::VertexElement structure definition file *
|
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_GRAPHICS_VERTEXELEMENT_
|
|
|
|
#define _XFX_GRAPHICS_VERTEXELEMENT_
|
|
|
|
|
|
|
|
#include <System/Object.h>
|
|
|
|
#include <System/Types.h>
|
|
|
|
#include <Graphics/Enums.h>
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace Graphics
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Defines input vertex data to the pipeline.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
struct VertexElement : Object
|
|
|
|
{
|
|
|
|
int Offset;
|
|
|
|
int UsageIndex;
|
|
|
|
VertexElementFormat_t VertexElementFormat;
|
|
|
|
VertexElementUsage_t VertexElementUsage;
|
|
|
|
|
|
|
|
VertexElement(const int offset, const VertexElementFormat_t elementFormat, const VertexElementUsage_t elementUsage, const int usageIndex);
|
|
|
|
VertexElement(const VertexElement &obj);
|
|
|
|
|
2013-05-31 15:58:00 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
int GetHashCode() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator!=(const VertexElement& other) const;
|
|
|
|
bool operator==(const VertexElement& other) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_VERTEXELEMENT_
|