| /NW4C-2.0.3/include/nw/ut/ |
| D | ut_ResDeclMacros.h | 30 type Get##name() const { return static_cast<type>(ref().m_##name); } \ 31 void Set##name(type value) { ref().m_##name = value; } \ 34 type Get##name() const { return static_cast<type>(ref().m_##name); } \ 35 void Set##name(type value) { ref().m_##name = value; } \ 36 …void Enable##name(type value) { ref().m_##name = ut::EnableFlag(ref().m_##name, value); } … 37 …void Disable##name(type value) { ref().m_##name = ut::DisableFlag(ref().m_##name, value); }… 40 bool Is##name() const { return static_cast<bool>(ref().m_Is##name); } \ 41 void Set##name(bool value) { ref().m_Is##name = value; } \ 45 const char* Get##name() const { return ref().to##name.to_ptr(); } \ 49 type Get##name() { return type( ref().to##name.to_ptr() ); } \ [all …]
|
| D | ut_ResMetaData.h | 79 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in NW_RES_FIELD_STRING_DECL() 90 s32 GetValuesCount() const { return ref().m_ValuesCount; } in NW_RES_CTOR_INHERIT() 91 const s32* GetValues() const { return &(ref().m_Values[0]); } in GetValues() 92 s32* GetValues() { return &(ref().m_Values[0]); } in GetValues() 94 s32 GetValues(int idx) const { return ref().m_Values[idx]; } in GetValues() 95 void SetValues(int idx, s32 value) { ref().m_Values[idx] = value; } in SetValues() 97 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in GetTypeInfo() 108 s32 GetValuesCount() const { return ref().m_ValuesCount; } in NW_RES_CTOR_INHERIT() 110 const f32* GetValues() const { return &(ref().m_Values[0]); } in GetValues() 111 f32* GetValues() { return &(ref().m_Values[0]); } in GetValues() [all …]
|
| D | ut_ResUtil.h | 134 class_name##Data& ref() \ 139 const class_name##Data& ref() const \ 175 ResDataType& ref() \ 181 const ResDataType& ref() const \ 339 … NW_FORCE_INLINE T& ref() { NW_ASSERT(this->IsValid()); return *reinterpret_cast<T*>(void_ptr()); } in ref() function 342 …NW_FORCE_INLINE const T& ref() const { NW_ASSERT(this->IsValid()); return *reinterpret_cast<const … in ref() function 417 s32 GetLength() const { return ref().len; } in NW_RES_CTOR() 420 const char* GetName() const { return &ref().str[0]; } in GetName() 454 NW_ASSERT( (ref().byteOrder == BOM) || (ref().byteOrder == BOM) ); in NW_RES_CTOR() 456 return *(u8*)(&ref().byteOrder) == 0xFE; in NW_RES_CTOR() [all …]
|
| D | ut_ResDictionary.h | 111 s32 GetCount() const { return ref().numData; } in NW_RES_CTOR() 118 if ( idx < 0 || s32(ref().numData) <= idx ) { return NULL; } 119 return const_cast<void*>( ref().data[idx].ofsData.to_ptr() ); 126 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() ); 133 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() ); 157 ResU32 ref; member 178 s32 GetCount() const { return ref().numData; } in GetCount() 184 NW_MINMAX_ASSERT( idx, 0, static_cast<int>(ref().numData - 1) ); 186 return const_cast<void*>(ref().data[idx + 1].ofsData.to_ptr()); 297 u32 GetLength() const { return ref().length; } in GetLength() [all …]
|
| /NW4C-2.0.3/include/nw/gfx/res/ |
| D | gfx_ResMaterial.h | 233 const nw::ut::FloatColor& GetAmbient() const { return ref().m_AmbientAndVertexColorScale; } in NW_RES_CTOR() 240 f32 GetVertexColorScale() const { return ref().m_AmbientAndVertexColorScale.a; } in GetVertexColorScale() 247 void SetVertexColorScale(f32 scale) { ref().m_AmbientAndVertexColorScale.a = scale; } in SetVertexColorScale() 254 u32 GetAmbientU32() const { return ref().m_AmbientU32; } in GetAmbientU32() 265 ref().m_AmbientAndVertexColorScale.SetColor(r, g, b); in SetAmbient() 266 ref().m_AmbientU32 = ref().m_AmbientAndVertexColorScale.ToPicaU32(); in SetAmbient() 483 return static_cast<CullingMode>(this->ref().m_CullingMode); in NW_RES_FIELD_FLAGS_DECL() 495 this->ref().m_CullingMode = static_cast<u32>(value); in SetCullingMode() 505 internal::SetCmdValue( &ref().m_CommandBuffer[0], table[value], CMD_MASK, CMD_SHIFT ); in SetCullingMode() 587 return static_cast<Mode>(ref().m_Mode); in NW_RES_CTOR() [all …]
|
| D | gfx_ResFragmentShader.h | 408 return TABLE[ref().m_Scale]; in NW_RES_FIELD_PRIMITIVE_DECL() 420 if (scale == 1.0f) { ref().m_Scale = SCALE_1; } in SetScaleF32() 421 else if (scale == 2.0f) { ref().m_Scale = SCALE_2; } in SetScaleF32() 422 else if (scale == 4.0f) { ref().m_Scale = SCALE_4; } in SetScaleF32() 423 else if (scale == 8.0f) { ref().m_Scale = SCALE_8; } in SetScaleF32() 424 else if (scale == 0.25f) { ref().m_Scale = SCALE_0_25; } in SetScaleF32() 425 else if (scale == 0.5f) { ref().m_Scale = SCALE_0_5; } in SetScaleF32() 465 referenceLut.ref().toTargetLut.set_ptr(resImageLookupTable.ptr()); in SetSampler() 699 … return internal::GetCmdValue( ref().m_CommandBuffer[0], CMD_MASK, CMD_SHIFT ) ? true : false; in IsTestEnabled() 711 internal::SetCmdValue( &ref().m_CommandBuffer[0], value, CMD_MASK, CMD_SHIFT ); in SetTestEnabled() [all …]
|
| D | gfx_ResLight.h | 287 referenceLut.ref().toTargetLut.set_ptr(lookupTable.ptr()); in NW_RES_CTOR_INHERIT() 297 return ref().m_DistanceAttenuationStart; in GetDistanceAttenuationStart() 307 return ref().m_DistanceAttenuationEnd; in GetDistanceAttenuationEnd() 315 ref().m_DistanceAttenuationStart = start; in SetDistanceAttenuationStart() 316 SetDistanceAttenuation(ref().m_DistanceAttenuationStart, ref().m_DistanceAttenuationEnd); in SetDistanceAttenuationStart() 324 ref().m_DistanceAttenuationEnd = end; in SetDistanceAttenuationEnd() 325 SetDistanceAttenuation(ref().m_DistanceAttenuationStart, ref().m_DistanceAttenuationEnd); in SetDistanceAttenuationEnd() 344 ref().m_DistanceAttenuationScale = ut::Float20::Float32ToBits20(1.0f / diff); in SetDistanceAttenuation() 345 ref().m_DistanceAttenuationBias = ut::Float20::Float32ToBits20(-start / diff); in SetDistanceAttenuation() 461 … bool IsDistanceAttenuationEnabled() const { return ref().m_IsDistanceAttenuationEnabled != 0.0f; } in NW_RES_CTOR_INHERIT() [all …]
|
| D | gfx_ResTextureMapper.h | 120 return static_cast<MinFilter>(this->ref().m_MinFilter); in NW_RES_CTOR() 129 this->ref().m_MinFilter = static_cast<MinFilter>(value); in SetMinFilter() 252 return static_cast<ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData() 262 return static_cast<const ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData() 270 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in GetTypeInfo() 295 const ut::FloatColor& GetBorderColor() const { return ref().m_BorderColor; } in NW_RES_CTOR_INHERIT() 302 ref().m_BorderColor = value; in SetBorderColor() 303 u32 borderColorU32 = ref().m_BorderColor.ToPicaU32(); in SetBorderColor() 320 ref().m_BorderColor.Set(r, g, b); in SetBorderColor() 321 u32 borderColorU32 = ref().m_BorderColor.ToPicaU32(); in SetBorderColor() [all …]
|
| D | gfx_ResShader.h | 167 const f32* GetValueF32() const { return &ref().m_Value[0]; } in NW_RES_FIELD_PRIMITIVE_DECL() 177 f32* GetValueF32() { return &ref().m_Value[0]; } in GetValueF32() 187 const s32* GetValueS32() const { return reinterpret_cast<const s32*>( &ref().m_Value[0] ); } in GetValueS32() 197 s32* GetValueS32() { return reinterpret_cast<s32*>( &ref().m_Value[0] ); } in GetValueS32() 204 … bool GetValueBool() const { return *reinterpret_cast<const s32*>( &ref().m_Value[0]) != 0; } in GetValueBool() 615 void* GetUniformLocation() { return ref().m_UniformLocation; } in NW_RES_FIELD_FLAGS_DECL() 616 const void* GetUniformLocation() const { return ref().m_UniformLocation; } in GetUniformLocation() 617 …void SetUniformLocation(void* uniformLocation) { ref().m_UniformLocation = uniformLocation;… in SetUniformLocation() 627 return static_cast<ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData() 637 return static_cast<const ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData() [all …]
|
| D | gfx_ResVertex.h | 142 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in GetTypeInfo() 301 u32 GetLocationAddress() const { return ref().m_LocationAddress; } in NW_RES_CTOR_INHERIT() 308 void SetLocationAddress(u32 address) { ref().m_LocationAddress = address; } in SetLocationAddress() 309 …void SetLocationAddress(const void* address) { ref().m_LocationAddress = reinterpret_cast<u32>(add… in SetLocationAddress() 532 u32 GetLocationAddress() const { return ref().m_LocationAddress; } in NW_RES_CTOR() 539 void SetLocationAddress(u32 address) { ref().m_LocationAddress = address; } in SetLocationAddress() 540 …void SetLocationAddress(const void* address) { ref().m_LocationAddress = reinterpret_cast<u32>(add… in SetLocationAddress()
|
| D | gfx_ResSceneObject.h | 119 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in NW_RES_FIELD_STRUCT_DECL() 181 … bool IsBranchVisible() const { return ref().m_Flags & ResSceneNodeData::FLAG_IS_BRANCH_VISIBLE; } in NW_RES_CTOR_INHERIT() 192 ref().m_Flags |= ResSceneNodeData::FLAG_IS_BRANCH_VISIBLE; in SetBranchVisible() 196 ref().m_Flags &= ~ResSceneNodeData::FLAG_IS_BRANCH_VISIBLE; in SetBranchVisible()
|
| /NW4C-2.0.3/sources/libraries/gfx/res/ |
| D | gfx_ResMesh.cpp | 74 u32* command = &mesh.ref().m_IrScaleCommand[0]; in ResSeparateDataShape_SetupVertexIrScale() 76 mesh.ref().m_Flags &= ~(ResMesh::FLAG_HAS_VERTEX_ALPHA | ResMesh::FLAG_HAS_BONE_WEIGHT_W); in ResSeparateDataShape_SetupVertexIrScale() 77 std::memset(command, 0, sizeof(mesh.ref().m_IrScaleCommand)); in ResSeparateDataShape_SetupVertexIrScale() 128 mesh.ref().m_Flags |= ResMesh::FLAG_HAS_VERTEX_ALPHA; in ResSeparateDataShape_SetupVertexIrScale() 132 mesh.ref().m_Flags |= ResMesh::FLAG_HAS_BONE_WEIGHT_W; in ResSeparateDataShape_SetupVertexIrScale() 179 ref().m_ActivateCommandCache = buffer; in Setup() 180 ref().m_ActivateCommandCacheSize = activateCommandSize; in Setup() 182 …ref().m_DeactivateCommandCache = nw::ut::AddOffsetToPtr( ref().m_ActivateCommandCache, activateCom… in Setup() 183 ref().m_DeactivateCommandCacheSize = deactivateCommandSize; in Setup() 185 ref().m_CommandAllocator = allocator; in Setup() [all …]
|
| D | gfx_ResShader.cpp | 48 switch ( this->ref().typeInfo ) in Dereference() 77 switch ( this->ref().typeInfo ) in Dereference() 108 switch ( this->ref().typeInfo ) in Setup() 152 resBinaryShader.ref().m_CommandAllocator = allocator; in ResBinaryShader_Setup() 166 …resBinaryShader.ref().m_ShaderBinaryInfo = new(binaryAnalyzerBuffer) ShaderBinaryInfo( resBinarySh… in ResBinaryShader_Setup() 179 resBinaryShader.ref().m_CommandCache = buffer; in ResBinaryShader_Setup() 180 resBinaryShader.ref().m_CommandCacheSize = writtenSize; in ResBinaryShader_Setup() 242 os::IAllocator* allocator = resBinaryShader.ref().m_CommandAllocator; in Cleanup() 244 if ( resBinaryShader.ref().m_CommandCache != NULL ) in Cleanup() 246 resBinaryShader.ref().m_CommandAllocator->Free( resBinaryShader.ref().m_CommandCache ); in Cleanup() [all …]
|
| D | gfx_ResShape.cpp | 91 resStream.ref().m_MemoryArea = area; in BufferData() 102 resStream.ref().m_MemoryArea = NN_GX_MEM_FCRAM; in BufferData() 125 GLuint area = resStream.ref().m_MemoryArea; in DeleteBuffer() 141 switch ( this->ref().typeInfo ) in Setup() 260 this->ref().m_CommandAllocator = allocator; in Setup() 271 resStream.ref().m_CommandCache = allocator->Alloc(commandSize, 4); in Setup() 272 resStream.ref().m_CommandCacheSize = commandSize; in Setup() 276 resStream.ref().m_MemoryArea = ResIndexStreamData::AREA_NO_MALLOC; in Setup() 306 NW_NULL_ASSERT( indexStream.ref().m_CommandCache ); in SetupDrawCommand() 309 indexStream.ref().m_CommandCache, in SetupDrawCommand() [all …]
|
| D | gfx_ResVertex.cpp | 62 resStream.ref().m_MemoryArea = area; in BufferData() 73 resStream.ref().m_MemoryArea = NN_GX_MEM_FCRAM; in BufferData() 90 GLuint area = resStream.ref().m_MemoryArea; in DeleteBuffer() 204 if (ref().m_BufferObject) in Setup() 211 this->ref().m_BufferObject = bufferID; in Setup() 216 ref().m_MemoryArea = ResVertexStreamBaseData::AREA_NO_MALLOC; in Setup() 253 if (ref().m_BufferObject) in Setup() 259 this->ref().m_BufferObject = bufferID; in Setup() 264 ref().m_MemoryArea = ResVertexStreamBaseData::AREA_NO_MALLOC; in Setup()
|
| D | gfx_ResTextureMapper.cpp | 144 switch ( resImageTexture.ref().typeInfo ) in ResPixelBasedTextureMapper_Setup() 225 new(mapperMemory) ResPixelBasedTextureMapperData(resPixelBasedTextureMapper.ref()); in ResPixelBasedTextureMapper_CloneDynamic() 258 new(samplerMemory) ResStandardTextureSamplerData(resStandardTextureSampler.ref()); in ResPixelBasedTextureMapper_CloneDynamic() 288 new(mapperMemory) ResProceduralTextureMapperData(resProceduralTextureMapper.ref()); in ResProceduralTextureMapper_CloneDynamic() 325 allocator->Free(resPixelBasedTextureMapper.ref().toSampler.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic() 330 allocator->Free(resPixelBasedTextureMapper.ref().toTexture.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic() 350 allocator->Free(resProceduralTextureMapper.ref().toTexture.to_ptr()); in ResProceduralTextureMapper_DestroyDynamic() 362 switch ( this->ref().typeInfo ) in CloneDynamic() 382 resTextureMapper.ref().m_DynamicAllocator = allocator; in CloneDynamic() 394 switch ( this->ref().typeInfo ) in GetMemorySizeForCloneInternal() [all …]
|
| D | gfx_ResUtil.cpp | 70 referenceLut.ref().toTargetLut.set_ptr(resLut.ptr()); in GetReferenceLutTarget() 97 referenceTexture.ref().toTargetTexture.set_ptr(referenceResult.first.ptr()); in GetReferenceTextureTarget() 103 referenceTexture.ref().toTargetTexture.set_ptr(resTexture.ptr()); in GetReferenceTextureTarget() 130 referenceShader.ref().toTargetShader.set_ptr(referenceResult.first.ptr()); in GetReferenceShaderTarget() 136 referenceShader.ref().toTargetShader.set_ptr(resShader.ptr()); in GetReferenceShaderTarget()
|
| D | gfx_ResLookupTable.cpp | 88 referLut.ref().toTargetLut.set_ptr(NULL); in ResReferenceLut_Cleanup() 99 switch ( this->ref().typeInfo ) in Setup() 124 switch ( this->ref().typeInfo ) in Cleanup() 148 ref().toTargetLut.set_ptr(lut.ptr()); in ForceSetup()
|
| /NW4C-2.0.3/sources/libraries/ut/ |
| D | ut_ResDictionary.cpp | 31 const ResDicLinearData::ResDicNodeData* x = ref().data; in GetIndex() 33 for ( int i = 0; i < s32(ref().numData); ++i ) in GetIndex() 50 const ResDataType& r = ref(); in Get() 58 while(p->ref > x->ref) in Get() 63 u32 wd = u32(x->ref) >> 3; in Get() 64 u32 pos = u32(x->ref) & 7; in Get() 88 const ResDataType& r = this->ref(); in Get() 93 while(p->ref > x->ref) in Get() 98 u32 wd = u32(x->ref) >> 3; in Get() 99 u32 pos = u32(x->ref) & 7; in Get()
|
| /NW4C-2.0.3/sources/libraries/gfx/ |
| D | gfx_ShaderProgram.cpp | 104 NW_NULL_ASSERT( shader.ref().m_CommandCache ); in ActivateDescription() 105 internal::NWUseCmdlist( shader.ref().m_CommandCache, shader.ref().m_CommandCacheSize ); in ActivateDescription() 108 NW_NULL_ASSERT( shaderProgramDescription.ref().m_CommandCache ); in ActivateDescription() 109 …internal::NWUseCmdlist( shaderProgramDescription.ref().m_CommandCache, shaderProgramDescription.re… in ActivateDescription()
|
| D | gfx_RenderContext.cpp | 425 NW_NULL_ASSERT( mesh.ref().m_ActivateCommandCache ); in ActivateVertexAttribute() 433 …internal::NWUseCmdlist( mesh.ref().m_ActivateCommandCache, mesh.ref().m_ActivateCommandCacheSize ); in ActivateVertexAttribute() 434 internal::NWUseCmdlist( mesh.ref().m_IrScaleCommand, sizeof(mesh.ref().m_IrScaleCommand) ); in ActivateVertexAttribute() 436 … const bool hasVertexAlpha = (mesh.ref().m_Flags & ResMesh::FLAG_HAS_VERTEX_ALPHA) ? true : false; in ActivateVertexAttribute() 437 … const bool hasBoneWeightW = (mesh.ref().m_Flags & ResMesh::FLAG_HAS_BONE_WEIGHT_W) ? true : false; in ActivateVertexAttribute() 659 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight() 660 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight() 696 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight() 697 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight() 901 NW_NULL_ASSERT(indexStream.ref().m_CommandCache); in RenderPrimitive() [all …]
|
| /NW4C-2.0.3/include/nw/anim/res/ |
| D | anim_ResAnim.h | 745 if ( ref().m_Flags & (hasNoCurveFlag) ) \ 751 return reinterpret_cast<const type*>( ref().to##name.to_ptr() ); \ 757 if ( ref().m_Flags & (hasNoCurveFlag) ) \ 763 return reinterpret_cast<type*>( ref().to##name.to_ptr() ); \ 771 if ( ref().m_Flags & (constantFlag) ) \ 773 return ref().constantValue##name; \ 778 reinterpret_cast<const ResFloatCurveData*>( ref().to##name.to_ptr() ), \ 787 if ( ref().m_Flags & (constantFlag) ) \ 789 return ref().constantValue##name; \ 794 reinterpret_cast<const ResIntCurveData*>( ref().to##name.to_ptr() ), \ [all …]
|
| /NW4C-2.0.3/include/nw/gfx/ |
| D | gfx_MaterialState.h | 353 …internal::NWUseCmdlist<sizeof(depthOperation.ref().m_CommandBuffer)>( &depthOperation.ref().m_Comm… in ActivateDepthOperation() 377 …internal::NWUseCmdlist<sizeof(stencilOperation.ref().m_CommandBuffer)>( &stencilOperation.ref().m_… in ActivateStencilOperation() 399 …internal::NWUseCmdlist<sizeof(blendOperation.ref().m_CommandBuffer)>(blendOperation.ref().m_Comman… in ActivateBlendOperation() 601 …internal::NWUseCmdlist<sizeof(rasterization.ref().m_CommandBuffer)>( rasterization.ref().m_Command… in ActivateRasterization() 790 …internal::NWUseCmdlist<sizeof(fragmentShader.ref().m_BufferCommand)>(&(fragmentShader.ref().m_Buff… in ActivateTextureCombiners() 805 …al::NWUseCmdlist<sizeof(textureCombiner.ref().m_CommandBuffer)>( reinterpret_cast<const u32*>(text… in ActivateTextureCombiners() 820 …internal::NWUseCmdlist<sizeof(alphaTest.ref().m_CommandBuffer)>( &alphaTest.ref().m_CommandBuffer[… in ActivateAlphaTest()
|
| /NW4C-2.0.3/include/nw/snd/ |
| D | snd_Util.h | 236 const ReferenceWithSize* ref = GetReference( typeId, count ); in GetReferedItem() local 237 if ( ref == NULL ) return NULL; in GetReferedItem() 238 if ( ref->offset == 0 ) return NULL; in GetReferedItem() 239 return ut::AddOffsetToPtr( origin, ref->offset ); in GetReferedItem() 243 const ReferenceWithSize* ref = GetReference( typeId, count ); in GetReferedItemSize() local 244 if ( ref == NULL ) return 0; in GetReferedItemSize() 245 return ref->size; in GetReferedItemSize() 249 const ReferenceWithSize* ref = GetReference( typeId, count ); in GetReferedItemOffset() local 250 if ( ref == NULL ) return 0; in GetReferedItemOffset() 251 return ref->offset; in GetReferedItemOffset()
|
| /NW4C-2.0.3/sources/libraries/snd/ |
| D | snd_BankFile.cpp | 116 const Util::Reference& ref = GetRegionTableAddress( regionTableIndex ); in GetRegion() local 117 return ut::AddOffsetToPtr( this, ref.offset ); in GetRegion() 249 const Util::Reference& ref = table.item[ programNo ]; in GetInstrument() local 251 switch ( ref.typeId ) in GetInstrument() 369 const Util::Reference& ref = *reinterpret_cast<const Util::Reference*>( in GetAdshrCurve() local 372 ut::AddOffsetToPtr( &ref, ref.offset ) ); in GetAdshrCurve()
|