| 364 | } |
| 365 | |
| 366 | bool GLSLShader::IsValid(Data const& goal, ConstantBuffer* resource) const |
| 367 | { |
| 368 | if (!resource) |
| 369 | { |
| 370 | // resource is null |
| 371 | return false; |
| 372 | } |
| 373 | |
| 374 | if (goal.type != GT_CONSTANT_BUFFER) |
| 375 | { |
| 376 | // mismatch of buffer type |
| 377 | return false; |
| 378 | } |
| 379 | |
| 380 | if (resource->GetNumBytes() >= static_cast<size_t>(goal.numBytes)) |
| 381 | { |
| 382 | return true; |
| 383 | } |
| 384 | |
| 385 | // invalid number of bytes |
| 386 | return false; |
| 387 | } |
| 388 | |
| 389 | bool GLSLShader::IsValid(Data const& goal, TextureBuffer* resource) const |
| 390 | { |
nothing calls this directly
no test coverage detected