Skip to content
Permalink
Browse files

use char instead of byte in dx (#1613)

  • Loading branch information...
fundies authored and RobertBColton committed Mar 16, 2019
1 parent a421640 commit bc705a24f11161582a81b1c6169981b56d236e27
@@ -115,8 +115,8 @@ size_t dxgi_format_sizes[] = {
sizeof(float) * 2,
sizeof(float) * 3,
sizeof(float) * 4,
sizeof(unsigned byte) * 4,
sizeof(unsigned byte) * 4
sizeof(unsigned char) * 4,
sizeof(unsigned char) * 4
};

map<int, ID3D11Buffer*> vertexBufferPeers;
@@ -29,7 +29,7 @@ namespace {

D3DPRIMITIVETYPE primitive_types[] = { static_cast<D3DPRIMITIVETYPE>(0), D3DPT_POINTLIST, D3DPT_LINELIST, D3DPT_LINESTRIP, D3DPT_TRIANGLELIST, D3DPT_TRIANGLESTRIP, D3DPT_TRIANGLEFAN };
D3DDECLTYPE declaration_types[] = { D3DDECLTYPE_FLOAT1, D3DDECLTYPE_FLOAT2, D3DDECLTYPE_FLOAT3, D3DDECLTYPE_FLOAT4, D3DDECLTYPE_D3DCOLOR, D3DDECLTYPE_UBYTE4 };
size_t declaration_type_sizes[] = { sizeof(float) * 1, sizeof(float) * 2, sizeof(float) * 3, sizeof(float) * 4, sizeof(unsigned byte) * 4, sizeof(unsigned byte) * 4 };
size_t declaration_type_sizes[] = { sizeof(float) * 1, sizeof(float) * 2, sizeof(float) * 3, sizeof(float) * 4, sizeof(unsigned char) * 4, sizeof(unsigned char) * 4 };
D3DDECLUSAGE usage_types[] = { D3DDECLUSAGE_POSITION, D3DDECLUSAGE_COLOR, D3DDECLUSAGE_NORMAL, D3DDECLUSAGE_TEXCOORD, D3DDECLUSAGE_BLENDWEIGHT,
D3DDECLUSAGE_BLENDINDICES, D3DDECLUSAGE_DEPTH, D3DDECLUSAGE_TANGENT, D3DDECLUSAGE_BINORMAL, D3DDECLUSAGE_FOG, D3DDECLUSAGE_SAMPLE };

0 comments on commit bc705a2

Please sign in to comment.
You can’t perform that action at this time.