OSDN Git Service

directx/shader_param.hpp: bool, int, uint, double Add.
authorMyun2 <myun2@nwhite.info>
Sun, 24 Apr 2011 04:17:09 +0000 (13:17 +0900)
committerMyun2 <myun2@nwhite.info>
Sun, 24 Apr 2011 04:17:09 +0000 (13:17 +0900)
roast_ex/include/roast/graphics/directx/shader_param.hpp

index 4408570..d002494 100644 (file)
@@ -31,6 +31,12 @@ namespace roast
                                        vector_rgb,
                                        vector_rgba,
 
+                                       bool_,
+                                       int_,
+                                       uint,
+                                       half,
+                                       double_,
+
                                        _null
                                };
 
@@ -48,6 +54,11 @@ namespace roast
 
                                template<> struct to_type<vector_rgb>{ typedef ::roast::directx::graphics::vector_rgb type; };
                                template<> struct to_type<vector_rgba>{ typedef ::roast::directx::graphics::vector_rgba type; };
+
+                               template<> struct to_type<bool_>{ typedef bool type; };
+                               template<> struct to_type<int_>{ typedef int type; };
+                               template<> struct to_type<uint>{ typedef unsigned int type; };
+                               template<> struct to_type<double_>{ typedef double type; };
                        }
                        typedef shader_param_type::_ shader_param_type_e;