mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
committed by
Compute-Runtime-Automation
parent
61524596e0
commit
9614d435c5
@@ -214,7 +214,7 @@ inline const ArgDescValue &ArgDescriptor::as<ArgDescValue>() const {
|
||||
|
||||
template <>
|
||||
inline ArgDescPointer &ArgDescriptor::as<ArgDescPointer>(bool initIfUnknown) {
|
||||
if ((ArgTUnknown == type) & initIfUnknown) {
|
||||
if ((ArgTUnknown == type) && initIfUnknown) {
|
||||
this->type = ArgTPointer;
|
||||
this->asPointer = {};
|
||||
}
|
||||
@@ -224,7 +224,7 @@ inline ArgDescPointer &ArgDescriptor::as<ArgDescPointer>(bool initIfUnknown) {
|
||||
|
||||
template <>
|
||||
inline ArgDescImage &ArgDescriptor::as<ArgDescImage>(bool initIfUnknown) {
|
||||
if ((ArgTUnknown == type) & initIfUnknown) {
|
||||
if ((ArgTUnknown == type) && initIfUnknown) {
|
||||
this->type = ArgTImage;
|
||||
this->asImage = {};
|
||||
}
|
||||
@@ -234,7 +234,7 @@ inline ArgDescImage &ArgDescriptor::as<ArgDescImage>(bool initIfUnknown) {
|
||||
|
||||
template <>
|
||||
inline ArgDescSampler &ArgDescriptor::as<ArgDescSampler>(bool initIfUnknown) {
|
||||
if ((ArgTUnknown == type) & initIfUnknown) {
|
||||
if ((ArgTUnknown == type) && initIfUnknown) {
|
||||
this->type = ArgTSampler;
|
||||
this->asSampler = {};
|
||||
}
|
||||
@@ -244,7 +244,7 @@ inline ArgDescSampler &ArgDescriptor::as<ArgDescSampler>(bool initIfUnknown) {
|
||||
|
||||
template <>
|
||||
inline ArgDescValue &ArgDescriptor::as<ArgDescValue>(bool initIfUnknown) {
|
||||
if ((ArgTUnknown == type) & initIfUnknown) {
|
||||
if ((ArgTUnknown == type) && initIfUnknown) {
|
||||
this->type = ArgTValue;
|
||||
this->asByValue = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user