| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #ifndef O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_EFFECT_D3D9_H_ | 36 #ifndef O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_EFFECT_D3D9_H_ |
| 37 #define O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_EFFECT_D3D9_H_ | 37 #define O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_EFFECT_D3D9_H_ |
| 38 | 38 |
| 39 #include <vector> | 39 #include <vector> |
| 40 #include "command_buffer/common/cross/gapi_interface.h" | 40 #include "command_buffer/common/cross/gapi_interface.h" |
| 41 #include "command_buffer/service/win/d3d9/d3d9_utils.h" | 41 #include "command_buffer/service/win/d3d9/d3d9_utils.h" |
| 42 #include "command_buffer/service/cross/resource.h" | 42 #include "command_buffer/service/cross/resource.h" |
| 43 | 43 |
| 44 namespace o3d { | 44 namespace o3d { |
| 45 namespace command_buffer { | 45 namespace command_buffer { |
| 46 namespace o3d { |
| 46 | 47 |
| 47 class GAPID3D9; | 48 class GAPID3D9; |
| 48 class EffectD3D9; | 49 class EffectD3D9; |
| 49 | 50 |
| 50 // ps_2_0 limit | 51 // ps_2_0 limit |
| 51 static const unsigned int kMaxSamplerUnits = 16; | 52 static const unsigned int kMaxSamplerUnits = 16; |
| 52 | 53 |
| 53 // D3D version of EffectParam. This class keeps a reference to the D3D effect. | 54 // D3D version of EffectParam. This class keeps a reference to the D3D effect. |
| 54 class EffectParamD3D9: public EffectParam { | 55 class EffectParamD3D9: public EffectParam { |
| 55 public: | 56 public: |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 ID3DXConstantTable *fs_constant_table_; | 127 ID3DXConstantTable *fs_constant_table_; |
| 127 ParamList params_; | 128 ParamList params_; |
| 128 StreamList streams_; | 129 StreamList streams_; |
| 129 bool sync_parameters_; | 130 bool sync_parameters_; |
| 130 ResourceId samplers_[kMaxSamplerUnits]; | 131 ResourceId samplers_[kMaxSamplerUnits]; |
| 131 | 132 |
| 132 friend class EffectParamD3D9; | 133 friend class EffectParamD3D9; |
| 133 DISALLOW_COPY_AND_ASSIGN(EffectD3D9); | 134 DISALLOW_COPY_AND_ASSIGN(EffectD3D9); |
| 134 }; | 135 }; |
| 135 | 136 |
| 137 } // namespace o3d |
| 136 } // namespace command_buffer | 138 } // namespace command_buffer |
| 137 } // namespace o3d | 139 } // namespace o3d |
| 138 | 140 |
| 139 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_EFFECT_D3D9_H_ | 141 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_EFFECT_D3D9_H_ |
| OLD | NEW |