Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
GteMemberLayout.h
Go to the documentation of this file.
1
// David Eberly, Geometric Tools, Redmond WA 98052
2
// Copyright (c) 1998-2017
3
// Distributed under the Boost Software License, Version 1.0.
4
// http://www.boost.org/LICENSE_1_0.txt
5
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6
// File Version: 3.0.0 (2016/06/19)
7
8
#pragma once
9
10
#include <
GTEngineDEF.h
>
11
#include <string>
12
#include <vector>
13
14
namespace
gte
15
{
16
17
// Support for generation of lookup tables for constant buffers and texture
18
// buffers. Given the name of a member of a buffer, get the offset into the
19
// buffer memory where the member lives. The layout is specific to the
20
// shading language (HLSL, GLSL).
21
struct
GTE_IMPEXP
MemberLayout
22
{
23
std::string
name
;
24
unsigned
int
offset
;
25
unsigned
int
numElements
;
26
};
27
28
typedef
std::vector<MemberLayout>
BufferLayout
;
29
30
}
gte::MemberLayout::offset
unsigned int offset
Definition:
GteMemberLayout.h:24
gte::BufferLayout
std::vector< MemberLayout > BufferLayout
Definition:
GteMemberLayout.h:28
GTEngineDEF.h
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:809
gte
Definition:
GLX/GteWICFileIO.h:16
gte::MemberLayout::numElements
unsigned int numElements
Definition:
GteMemberLayout.h:25
gte::MemberLayout::name
std::string name
Definition:
GteMemberLayout.h:23
gte::MemberLayout
Definition:
GteMemberLayout.h:21
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01