소스 검색

misc: disable all 16-bit float vectors when using Visual Studio.

undefined
Sam Hocevar 10 년 전
부모
커밋
ffa21ed0d0
3개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      src/gpu/vertexbuffer.cpp
  2. +4
    -0
      src/lol/gpu/vertexbuffer.h
  3. +4
    -0
      src/math/constants.cpp

+ 2
- 0
src/gpu/vertexbuffer.cpp 파일 보기

@@ -629,7 +629,9 @@ VertexStreamBase VertexDeclaration::GetStream(int index) const
case VertexStreamBase::Type##T: stream.AddStream<T>(n++, m_streams[i].usage); break;

__T(void)
#if LOL_FEATURE_CXX11_UNRESTRICTED_UNIONS
__T(half) __T(f16vec2) __T(f16vec3) __T(f16vec4)
#endif
__T(float) __T(vec2) __T(vec3) __T(vec4)
__T(double) __T(dvec2) __T(dvec3) __T(dvec4)
__T(int8_t) __T(i8vec2) __T(i8vec3) __T(i8vec4)


+ 4
- 0
src/lol/gpu/vertexbuffer.h 파일 보기

@@ -56,7 +56,9 @@ public:
enum
{
Typevoid = 0,
#if LOL_FEATURE_CXX11_UNRESTRICTED_UNIONS
Typehalf, Typef16vec2, Typef16vec3, Typef16vec4,
#endif
Typefloat, Typevec2, Typevec3, Typevec4,
Typedouble, Typedvec2, Typedvec3, Typedvec4,
Typeint8_t, Typei8vec2, Typei8vec3, Typei8vec4,
@@ -103,7 +105,9 @@ protected:
static uint8_t GetType(T *x) { UNUSED(x); return Type##T; }

__T(void)
#if LOL_FEATURE_CXX11_UNRESTRICTED_UNIONS
__T(half) __T(f16vec2) __T(f16vec3) __T(f16vec4)
#endif
__T(float) __T(vec2) __T(vec3) __T(vec4)
__T(double) __T(dvec2) __T(dvec3) __T(dvec4)
__T(int8_t) __T(i8vec2) __T(i8vec3) __T(i8vec4)


+ 4
- 0
src/math/constants.cpp 파일 보기

@@ -56,11 +56,15 @@ namespace lol {
\
LOL_MAT_CONST(T, identity, 1)

#if LOL_FEATURE_CXX11_UNRESTRICTED_UNIONS
LOL_ALL_CONST_INNER(half)
#endif
LOL_ALL_CONST_INNER(float)
LOL_ALL_CONST_INNER(double)
LOL_ALL_CONST_INNER(ldouble)
#if LOL_FEATURE_CXX11_UNRESTRICTED_UNIONS
LOL_ALL_CONST_INNER(real)
#endif

LOL_ALL_CONST_INNER(int8_t)
LOL_ALL_CONST_INNER(uint8_t)


불러오는 중...
취소
저장