| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Implements the SetViewport function for D3D9. | 78 // Implements the SetViewport function for D3D9. |
| 79 virtual void SetViewport(unsigned int x, | 79 virtual void SetViewport(unsigned int x, |
| 80 unsigned int y, | 80 unsigned int y, |
| 81 unsigned int width, | 81 unsigned int width, |
| 82 unsigned int height, | 82 unsigned int height, |
| 83 float z_min, | 83 float z_min, |
| 84 float z_max); | 84 float z_max); |
| 85 | 85 |
| 86 // Implements the CreateVertexBuffer function for D3D9. | 86 // Implements the CreateVertexBuffer function for D3D9. |
| 87 virtual ParseError CreateVertexBuffer(ResourceID id, | 87 virtual ParseError CreateVertexBuffer(ResourceId id, |
| 88 unsigned int size, | 88 unsigned int size, |
| 89 unsigned int flags); | 89 unsigned int flags); |
| 90 | 90 |
| 91 // Implements the DestroyVertexBuffer function for D3D9. | 91 // Implements the DestroyVertexBuffer function for D3D9. |
| 92 virtual ParseError DestroyVertexBuffer(ResourceID id); | 92 virtual ParseError DestroyVertexBuffer(ResourceId id); |
| 93 | 93 |
| 94 // Implements the SetVertexBufferData function for D3D9. | 94 // Implements the SetVertexBufferData function for D3D9. |
| 95 virtual ParseError SetVertexBufferData(ResourceID id, | 95 virtual ParseError SetVertexBufferData(ResourceId id, |
| 96 unsigned int offset, | 96 unsigned int offset, |
| 97 unsigned int size, | 97 unsigned int size, |
| 98 const void *data); | 98 const void *data); |
| 99 | 99 |
| 100 // Implements the GetVertexBufferData function for D3D9. | 100 // Implements the GetVertexBufferData function for D3D9. |
| 101 virtual ParseError GetVertexBufferData(ResourceID id, | 101 virtual ParseError GetVertexBufferData(ResourceId id, |
| 102 unsigned int offset, | 102 unsigned int offset, |
| 103 unsigned int size, | 103 unsigned int size, |
| 104 void *data); | 104 void *data); |
| 105 | 105 |
| 106 // Implements the CreateIndexBuffer function for D3D9. | 106 // Implements the CreateIndexBuffer function for D3D9. |
| 107 virtual ParseError CreateIndexBuffer(ResourceID id, | 107 virtual ParseError CreateIndexBuffer(ResourceId id, |
| 108 unsigned int size, | 108 unsigned int size, |
| 109 unsigned int flags); | 109 unsigned int flags); |
| 110 | 110 |
| 111 // Implements the DestroyIndexBuffer function for D3D9. | 111 // Implements the DestroyIndexBuffer function for D3D9. |
| 112 virtual ParseError DestroyIndexBuffer(ResourceID id); | 112 virtual ParseError DestroyIndexBuffer(ResourceId id); |
| 113 | 113 |
| 114 // Implements the SetIndexBufferData function for D3D9. | 114 // Implements the SetIndexBufferData function for D3D9. |
| 115 virtual ParseError SetIndexBufferData(ResourceID id, | 115 virtual ParseError SetIndexBufferData(ResourceId id, |
| 116 unsigned int offset, | 116 unsigned int offset, |
| 117 unsigned int size, | 117 unsigned int size, |
| 118 const void *data); | 118 const void *data); |
| 119 | 119 |
| 120 // Implements the GetIndexBufferData function for D3D9. | 120 // Implements the GetIndexBufferData function for D3D9. |
| 121 virtual ParseError GetIndexBufferData(ResourceID id, | 121 virtual ParseError GetIndexBufferData(ResourceId id, |
| 122 unsigned int offset, | 122 unsigned int offset, |
| 123 unsigned int size, | 123 unsigned int size, |
| 124 void *data); | 124 void *data); |
| 125 | 125 |
| 126 // Implements the CreateVertexStruct function for D3D9. | 126 // Implements the CreateVertexStruct function for D3D9. |
| 127 virtual ParseError CreateVertexStruct(ResourceID id, | 127 virtual ParseError CreateVertexStruct(ResourceId id, |
| 128 unsigned int input_count); | 128 unsigned int input_count); |
| 129 | 129 |
| 130 // Implements the DestroyVertexStruct function for D3D9. | 130 // Implements the DestroyVertexStruct function for D3D9. |
| 131 virtual ParseError DestroyVertexStruct(ResourceID id); | 131 virtual ParseError DestroyVertexStruct(ResourceId id); |
| 132 | 132 |
| 133 // Implements the SetVertexInput function for D3D9. | 133 // Implements the SetVertexInput function for D3D9. |
| 134 virtual ParseError SetVertexInput(ResourceID vertex_struct_id, | 134 virtual ParseError SetVertexInput(ResourceId vertex_struct_id, |
| 135 unsigned int input_index, | 135 unsigned int input_index, |
| 136 ResourceID vertex_buffer_id, | 136 ResourceId vertex_buffer_id, |
| 137 unsigned int offset, | 137 unsigned int offset, |
| 138 unsigned int stride, | 138 unsigned int stride, |
| 139 vertex_struct::Type type, | 139 vertex_struct::Type type, |
| 140 vertex_struct::Semantic semantic, | 140 vertex_struct::Semantic semantic, |
| 141 unsigned int semantic_index); | 141 unsigned int semantic_index); |
| 142 | 142 |
| 143 // Implements the SetVertexStruct function for D3D9. | 143 // Implements the SetVertexStruct function for D3D9. |
| 144 virtual ParseError SetVertexStruct(ResourceID id); | 144 virtual ParseError SetVertexStruct(ResourceId id); |
| 145 | 145 |
| 146 // Implements the Draw function for D3D9. | 146 // Implements the Draw function for D3D9. |
| 147 virtual ParseError Draw(PrimitiveType primitive_type, | 147 virtual ParseError Draw(PrimitiveType primitive_type, |
| 148 unsigned int first, | 148 unsigned int first, |
| 149 unsigned int count); | 149 unsigned int count); |
| 150 | 150 |
| 151 // Implements the DrawIndexed function for D3D9. | 151 // Implements the DrawIndexed function for D3D9. |
| 152 virtual ParseError DrawIndexed(PrimitiveType primitive_type, | 152 virtual ParseError DrawIndexed(PrimitiveType primitive_type, |
| 153 ResourceID index_buffer_id, | 153 ResourceId index_buffer_id, |
| 154 unsigned int first, | 154 unsigned int first, |
| 155 unsigned int count, | 155 unsigned int count, |
| 156 unsigned int min_index, | 156 unsigned int min_index, |
| 157 unsigned int max_index); | 157 unsigned int max_index); |
| 158 | 158 |
| 159 // Implements the CreateEffect function for D3D9. | 159 // Implements the CreateEffect function for D3D9. |
| 160 virtual ParseError CreateEffect(ResourceID id, | 160 virtual ParseError CreateEffect(ResourceId id, |
| 161 unsigned int size, | 161 unsigned int size, |
| 162 const void *data); | 162 const void *data); |
| 163 | 163 |
| 164 // Implements the DestroyEffect function for D3D9. | 164 // Implements the DestroyEffect function for D3D9. |
| 165 virtual ParseError DestroyEffect(ResourceID id); | 165 virtual ParseError DestroyEffect(ResourceId id); |
| 166 | 166 |
| 167 // Implements the SetEffect function for D3D9. | 167 // Implements the SetEffect function for D3D9. |
| 168 virtual ParseError SetEffect(ResourceID id); | 168 virtual ParseError SetEffect(ResourceId id); |
| 169 | 169 |
| 170 // Implements the GetParamCount function for D3D9. | 170 // Implements the GetParamCount function for D3D9. |
| 171 virtual ParseError GetParamCount(ResourceID id, | 171 virtual ParseError GetParamCount(ResourceId id, |
| 172 unsigned int size, | 172 unsigned int size, |
| 173 void *data); | 173 void *data); |
| 174 | 174 |
| 175 // Implements the CreateParam function for D3D9. | 175 // Implements the CreateParam function for D3D9. |
| 176 virtual ParseError CreateParam(ResourceID param_id, | 176 virtual ParseError CreateParam(ResourceId param_id, |
| 177 ResourceID effect_id, | 177 ResourceId effect_id, |
| 178 unsigned int index); | 178 unsigned int index); |
| 179 | 179 |
| 180 // Implements the CreateParamByName function for D3D9. | 180 // Implements the CreateParamByName function for D3D9. |
| 181 virtual ParseError CreateParamByName(ResourceID param_id, | 181 virtual ParseError CreateParamByName(ResourceId param_id, |
| 182 ResourceID effect_id, | 182 ResourceId effect_id, |
| 183 unsigned int size, | 183 unsigned int size, |
| 184 const void *name); | 184 const void *name); |
| 185 | 185 |
| 186 // Implements the DestroyParam function for D3D9. | 186 // Implements the DestroyParam function for D3D9. |
| 187 virtual ParseError DestroyParam(ResourceID id); | 187 virtual ParseError DestroyParam(ResourceId id); |
| 188 | 188 |
| 189 // Implements the SetParamData function for D3D9. | 189 // Implements the SetParamData function for D3D9. |
| 190 virtual ParseError SetParamData(ResourceID id, | 190 virtual ParseError SetParamData(ResourceId id, |
| 191 unsigned int size, | 191 unsigned int size, |
| 192 const void *data); | 192 const void *data); |
| 193 | 193 |
| 194 // Implements the GetParamDesc function for D3D9. | 194 // Implements the GetParamDesc function for D3D9. |
| 195 virtual ParseError GetParamDesc(ResourceID id, | 195 virtual ParseError GetParamDesc(ResourceId id, |
| 196 unsigned int size, | 196 unsigned int size, |
| 197 void *data); | 197 void *data); |
| 198 | 198 |
| 199 // Implements the GetStreamCount function for D3D9. | 199 // Implements the GetStreamCount function for D3D9. |
| 200 virtual ParseError GetStreamCount(ResourceID id, | 200 virtual ParseError GetStreamCount(ResourceId id, |
| 201 unsigned int size, | 201 unsigned int size, |
| 202 void *data); | 202 void *data); |
| 203 | 203 |
| 204 // Implements the GetStreamDesc function for D3D9. | 204 // Implements the GetStreamDesc function for D3D9. |
| 205 virtual ParseError GetStreamDesc(ResourceID id, | 205 virtual ParseError GetStreamDesc(ResourceId id, |
| 206 unsigned int index, | 206 unsigned int index, |
| 207 unsigned int size, | 207 unsigned int size, |
| 208 void *data); | 208 void *data); |
| 209 | 209 |
| 210 // Implements the CreateTexture2D function for D3D9. | 210 // Implements the CreateTexture2D function for D3D9. |
| 211 virtual ParseError CreateTexture2D(ResourceID id, | 211 virtual ParseError CreateTexture2D(ResourceId id, |
| 212 unsigned int width, | 212 unsigned int width, |
| 213 unsigned int height, | 213 unsigned int height, |
| 214 unsigned int levels, | 214 unsigned int levels, |
| 215 texture::Format format, | 215 texture::Format format, |
| 216 unsigned int flags, | 216 unsigned int flags, |
| 217 bool enable_render_surfaces); | 217 bool enable_render_surfaces); |
| 218 | 218 |
| 219 // Implements the CreateTexture3D function for D3D9. | 219 // Implements the CreateTexture3D function for D3D9. |
| 220 virtual ParseError CreateTexture3D(ResourceID id, | 220 virtual ParseError CreateTexture3D(ResourceId id, |
| 221 unsigned int width, | 221 unsigned int width, |
| 222 unsigned int height, | 222 unsigned int height, |
| 223 unsigned int depth, | 223 unsigned int depth, |
| 224 unsigned int levels, | 224 unsigned int levels, |
| 225 texture::Format format, | 225 texture::Format format, |
| 226 unsigned int flags, | 226 unsigned int flags, |
| 227 bool enable_render_surfaces); | 227 bool enable_render_surfaces); |
| 228 | 228 |
| 229 // Implements the CreateTextureCube function for D3D9. | 229 // Implements the CreateTextureCube function for D3D9. |
| 230 virtual ParseError CreateTextureCube(ResourceID id, | 230 virtual ParseError CreateTextureCube(ResourceId id, |
| 231 unsigned int side, | 231 unsigned int side, |
| 232 unsigned int levels, | 232 unsigned int levels, |
| 233 texture::Format format, | 233 texture::Format format, |
| 234 unsigned int flags, | 234 unsigned int flags, |
| 235 bool enable_render_surfaces); | 235 bool enable_render_surfaces); |
| 236 | 236 |
| 237 // Implements the SetTextureData function for D3D9. | 237 // Implements the SetTextureData function for D3D9. |
| 238 virtual ParseError SetTextureData(ResourceID id, | 238 virtual ParseError SetTextureData(ResourceId id, |
| 239 unsigned int x, | 239 unsigned int x, |
| 240 unsigned int y, | 240 unsigned int y, |
| 241 unsigned int z, | 241 unsigned int z, |
| 242 unsigned int width, | 242 unsigned int width, |
| 243 unsigned int height, | 243 unsigned int height, |
| 244 unsigned int depth, | 244 unsigned int depth, |
| 245 unsigned int level, | 245 unsigned int level, |
| 246 texture::Face face, | 246 texture::Face face, |
| 247 unsigned int pitch, | 247 unsigned int pitch, |
| 248 unsigned int slice_pitch, | 248 unsigned int slice_pitch, |
| 249 unsigned int size, | 249 unsigned int size, |
| 250 const void *data); | 250 const void *data); |
| 251 | 251 |
| 252 // Implements the GetTextureData function for D3D9. | 252 // Implements the GetTextureData function for D3D9. |
| 253 virtual ParseError GetTextureData(ResourceID id, | 253 virtual ParseError GetTextureData(ResourceId id, |
| 254 unsigned int x, | 254 unsigned int x, |
| 255 unsigned int y, | 255 unsigned int y, |
| 256 unsigned int z, | 256 unsigned int z, |
| 257 unsigned int width, | 257 unsigned int width, |
| 258 unsigned int height, | 258 unsigned int height, |
| 259 unsigned int depth, | 259 unsigned int depth, |
| 260 unsigned int level, | 260 unsigned int level, |
| 261 texture::Face face, | 261 texture::Face face, |
| 262 unsigned int pitch, | 262 unsigned int pitch, |
| 263 unsigned int slice_pitch, | 263 unsigned int slice_pitch, |
| 264 unsigned int size, | 264 unsigned int size, |
| 265 void *data); | 265 void *data); |
| 266 | 266 |
| 267 // Implements the DestroyTexture function for D3D9. | 267 // Implements the DestroyTexture function for D3D9. |
| 268 virtual ParseError DestroyTexture(ResourceID id); | 268 virtual ParseError DestroyTexture(ResourceId id); |
| 269 | 269 |
| 270 // Implements the CreateSampler function for D3D9. | 270 // Implements the CreateSampler function for D3D9. |
| 271 virtual ParseError CreateSampler(ResourceID id); | 271 virtual ParseError CreateSampler(ResourceId id); |
| 272 | 272 |
| 273 // Implements the DestroySampler function for D3D9. | 273 // Implements the DestroySampler function for D3D9. |
| 274 virtual ParseError DestroySampler(ResourceID id); | 274 virtual ParseError DestroySampler(ResourceId id); |
| 275 | 275 |
| 276 // Implements the SetSamplerStates function for D3D9. | 276 // Implements the SetSamplerStates function for D3D9. |
| 277 virtual ParseError SetSamplerStates(ResourceID id, | 277 virtual ParseError SetSamplerStates(ResourceId id, |
| 278 sampler::AddressingMode addressing_u, | 278 sampler::AddressingMode addressing_u, |
| 279 sampler::AddressingMode addressing_v, | 279 sampler::AddressingMode addressing_v, |
| 280 sampler::AddressingMode addressing_w, | 280 sampler::AddressingMode addressing_w, |
| 281 sampler::FilteringMode mag_filter, | 281 sampler::FilteringMode mag_filter, |
| 282 sampler::FilteringMode min_filter, | 282 sampler::FilteringMode min_filter, |
| 283 sampler::FilteringMode mip_filter, | 283 sampler::FilteringMode mip_filter, |
| 284 unsigned int max_anisotropy); | 284 unsigned int max_anisotropy); |
| 285 | 285 |
| 286 // Implements the SetSamplerBorderColor function for D3D9. | 286 // Implements the SetSamplerBorderColor function for D3D9. |
| 287 virtual ParseError SetSamplerBorderColor(ResourceID id, const RGBA &color); | 287 virtual ParseError SetSamplerBorderColor(ResourceId id, const RGBA &color); |
| 288 | 288 |
| 289 // Implements the SetSamplerTexture function for D3D9. | 289 // Implements the SetSamplerTexture function for D3D9. |
| 290 virtual ParseError SetSamplerTexture(ResourceID id, ResourceID texture_id); | 290 virtual ParseError SetSamplerTexture(ResourceId id, ResourceId texture_id); |
| 291 | 291 |
| 292 // Implements the SetScissor function for D3D9. | 292 // Implements the SetScissor function for D3D9. |
| 293 virtual void SetScissor(bool enable, | 293 virtual void SetScissor(bool enable, |
| 294 unsigned int x, | 294 unsigned int x, |
| 295 unsigned int y, | 295 unsigned int y, |
| 296 unsigned int width, | 296 unsigned int width, |
| 297 unsigned int height); | 297 unsigned int height); |
| 298 | 298 |
| 299 // Implements the SetPointLineRaster function for D3D9. | 299 // Implements the SetPointLineRaster function for D3D9. |
| 300 virtual void SetPointLineRaster(bool line_smooth, | 300 virtual void SetPointLineRaster(bool line_smooth, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 BlendFunc color_src_func, | 340 BlendFunc color_src_func, |
| 341 BlendFunc color_dst_func, | 341 BlendFunc color_dst_func, |
| 342 BlendEq alpha_eq, | 342 BlendEq alpha_eq, |
| 343 BlendFunc alpha_src_func, | 343 BlendFunc alpha_src_func, |
| 344 BlendFunc alpha_dst_func); | 344 BlendFunc alpha_dst_func); |
| 345 | 345 |
| 346 // Implements the SetBlendingColor function for D3D9. | 346 // Implements the SetBlendingColor function for D3D9. |
| 347 virtual void SetBlendingColor(const RGBA &color); | 347 virtual void SetBlendingColor(const RGBA &color); |
| 348 | 348 |
| 349 // Implements the CreateRenderSurface function for D3D9. | 349 // Implements the CreateRenderSurface function for D3D9. |
| 350 virtual ParseError CreateRenderSurface(ResourceID id, | 350 virtual ParseError CreateRenderSurface(ResourceId id, |
| 351 unsigned int width, | 351 unsigned int width, |
| 352 unsigned int height, | 352 unsigned int height, |
| 353 unsigned int mip_level, | 353 unsigned int mip_level, |
| 354 unsigned int side, | 354 unsigned int side, |
| 355 ResourceID texture_id); | 355 ResourceId texture_id); |
| 356 | 356 |
| 357 // Implements the DestroyRenderSurface function for D3D9. | 357 // Implements the DestroyRenderSurface function for D3D9. |
| 358 virtual ParseError DestroyRenderSurface(ResourceID id); | 358 virtual ParseError DestroyRenderSurface(ResourceId id); |
| 359 | 359 |
| 360 // Implements the CreateDepthSurface function for D3D9. | 360 // Implements the CreateDepthSurface function for D3D9. |
| 361 virtual ParseError CreateDepthSurface(ResourceID id, | 361 virtual ParseError CreateDepthSurface(ResourceId id, |
| 362 unsigned int width, | 362 unsigned int width, |
| 363 unsigned int height); | 363 unsigned int height); |
| 364 | 364 |
| 365 // Implements teh DestroyDepthSurface function for D3D9. | 365 // Implements teh DestroyDepthSurface function for D3D9. |
| 366 virtual ParseError DestroyDepthSurface(ResourceID id); | 366 virtual ParseError DestroyDepthSurface(ResourceId id); |
| 367 | 367 |
| 368 // Implements the SetRenderSurface function for D3D9. | 368 // Implements the SetRenderSurface function for D3D9. |
| 369 virtual ParseError SetRenderSurface(ResourceID render_surface_id, | 369 virtual ParseError SetRenderSurface(ResourceId render_surface_id, |
| 370 ResourceID depth_stencil_id); | 370 ResourceId depth_stencil_id); |
| 371 | 371 |
| 372 // Implements the SetBackSurfaces function for D3D9. | 372 // Implements the SetBackSurfaces function for D3D9. |
| 373 virtual void SetBackSurfaces(); | 373 virtual void SetBackSurfaces(); |
| 374 | 374 |
| 375 // Gets the D3D9 device. | 375 // Gets the D3D9 device. |
| 376 IDirect3DDevice9 *d3d_device() const { return d3d_device_; } | 376 IDirect3DDevice9 *d3d_device() const { return d3d_device_; } |
| 377 | 377 |
| 378 // Gets a vertex buffer by resource ID. | 378 // Gets a vertex buffer by resource ID. |
| 379 VertexBufferD3D9 *GetVertexBuffer(ResourceID id) { | 379 VertexBufferD3D9 *GetVertexBuffer(ResourceId id) { |
| 380 return vertex_buffers_.Get(id); | 380 return vertex_buffers_.Get(id); |
| 381 } | 381 } |
| 382 | 382 |
| 383 // Gets a texture by resource ID. | 383 // Gets a texture by resource ID. |
| 384 TextureD3D9 *GetTexture(ResourceID id) { | 384 TextureD3D9 *GetTexture(ResourceId id) { |
| 385 return textures_.Get(id); | 385 return textures_.Get(id); |
| 386 } | 386 } |
| 387 | 387 |
| 388 // Gets a sampler by resource ID. | 388 // Gets a sampler by resource ID. |
| 389 SamplerD3D9 *GetSampler(ResourceID id) { | 389 SamplerD3D9 *GetSampler(ResourceId id) { |
| 390 return samplers_.Get(id); | 390 return samplers_.Get(id); |
| 391 } | 391 } |
| 392 | 392 |
| 393 EffectD3D9 *current_effect() { return current_effect_; } | 393 EffectD3D9 *current_effect() { return current_effect_; } |
| 394 private: | 394 private: |
| 395 // Validates the current vertex struct to D3D, setting the streams. | 395 // Validates the current vertex struct to D3D, setting the streams. |
| 396 bool ValidateStreams(); | 396 bool ValidateStreams(); |
| 397 // Validates the current effect to D3D. This sends the effect states to D3D. | 397 // Validates the current effect to D3D. This sends the effect states to D3D. |
| 398 bool ValidateEffect(); | 398 bool ValidateEffect(); |
| 399 // "Dirty" the current effect. This resets the effect states to D3D, and | 399 // "Dirty" the current effect. This resets the effect states to D3D, and |
| 400 // requires ValidateEffect() to be called before further draws occur. | 400 // requires ValidateEffect() to be called before further draws occur. |
| 401 void DirtyEffect(); | 401 void DirtyEffect(); |
| 402 | 402 |
| 403 LPDIRECT3D9 d3d_; | 403 LPDIRECT3D9 d3d_; |
| 404 LPDIRECT3DDEVICE9 d3d_device_; | 404 LPDIRECT3DDEVICE9 d3d_device_; |
| 405 HWND hwnd_; | 405 HWND hwnd_; |
| 406 ResourceID current_vertex_struct_; | 406 ResourceId current_vertex_struct_; |
| 407 bool validate_streams_; | 407 bool validate_streams_; |
| 408 unsigned int max_vertices_; | 408 unsigned int max_vertices_; |
| 409 ResourceID current_effect_id_; | 409 ResourceId current_effect_id_; |
| 410 bool validate_effect_; | 410 bool validate_effect_; |
| 411 EffectD3D9 *current_effect_; | 411 EffectD3D9 *current_effect_; |
| 412 IDirect3DSurface9* back_buffer_surface_; | 412 IDirect3DSurface9* back_buffer_surface_; |
| 413 IDirect3DSurface9* back_buffer_depth_surface_; | 413 IDirect3DSurface9* back_buffer_depth_surface_; |
| 414 ResourceID current_surface_id_; | 414 ResourceId current_surface_id_; |
| 415 ResourceID current_depth_surface_id_; | 415 ResourceId current_depth_surface_id_; |
| 416 | 416 |
| 417 ResourceMap<VertexBufferD3D9> vertex_buffers_; | 417 ResourceMap<VertexBufferD3D9> vertex_buffers_; |
| 418 ResourceMap<IndexBufferD3D9> index_buffers_; | 418 ResourceMap<IndexBufferD3D9> index_buffers_; |
| 419 ResourceMap<VertexStructD3D9> vertex_structs_; | 419 ResourceMap<VertexStructD3D9> vertex_structs_; |
| 420 ResourceMap<EffectD3D9> effects_; | 420 ResourceMap<EffectD3D9> effects_; |
| 421 ResourceMap<EffectParamD3D9> effect_params_; | 421 ResourceMap<EffectParamD3D9> effect_params_; |
| 422 ResourceMap<TextureD3D9> textures_; | 422 ResourceMap<TextureD3D9> textures_; |
| 423 ResourceMap<SamplerD3D9> samplers_; | 423 ResourceMap<SamplerD3D9> samplers_; |
| 424 ResourceMap<RenderSurfaceD3D9> render_surfaces_; | 424 ResourceMap<RenderSurfaceD3D9> render_surfaces_; |
| 425 ResourceMap<RenderDepthStencilSurfaceD3D9> depth_surfaces_; | 425 ResourceMap<RenderDepthStencilSurfaceD3D9> depth_surfaces_; |
| 426 }; | 426 }; |
| 427 | 427 |
| 428 } // namespace command_buffer | 428 } // namespace command_buffer |
| 429 } // namespace o3d | 429 } // namespace o3d |
| 430 | 430 |
| 431 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_GAPI_D3D9_H_ | 431 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_GAPI_D3D9_H_ |
| 432 | 432 |
| OLD | NEW |