| /NW4C-1.3.3/include/nw/ut/ |
| D | ut_ResDeclMacros.h | 28 type Get##name() const { return static_cast<type>(ref().m_##name); } \ 29 void Set##name(type value) { ref().m_##name = value; } \ 32 type Get##name() const { return static_cast<type>(ref().m_##name); } \ 33 void Set##name(type value) { ref().m_##name = value; } \ 34 …void Enable##name(type value) { ref().m_##name = ut::EnableFlag(ref().m_##name, value); } … 35 …void Disable##name(type value) { ref().m_##name = ut::DisableFlag(ref().m_##name, value); }… 38 bool Is##name() const { return static_cast<bool>(ref().m_Is##name); } \ 39 void Set##name(bool value) { ref().m_Is##name = value; } \ 43 const char* Get##name() const { return ref().to##name.to_ptr(); } \ 47 type Get##name() { return type( ref().to##name.to_ptr() ); } \ [all …]
|
| D | ut_ResMetaData.h | 77 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in NW_RES_FIELD_STRING_DECL() 88 s32 GetValuesCount() const { return ref().m_ValuesCount; } in NW_RES_CTOR_INHERIT() 89 const s32* GetValues() const { return &(ref().m_Values[0]); } in GetValues() 90 s32* GetValues() { return &(ref().m_Values[0]); } in GetValues() 92 s32 GetValues(int idx) const { return ref().m_Values[idx]; } in GetValues() 93 void SetValues(int idx, s32 value) { ref().m_Values[idx] = value; } in SetValues() 95 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in GetTypeInfo() 106 s32 GetValuesCount() const { return ref().m_ValuesCount; } in NW_RES_CTOR_INHERIT() 108 const f32* GetValues() const { return &(ref().m_Values[0]); } in GetValues() 109 f32* GetValues() { return &(ref().m_Values[0]); } in GetValues() [all …]
|
| D | ut_ResUtil.h | 132 class_name##Data& ref() \ 137 const class_name##Data& ref() const \ 173 ResDataType& ref() \ 179 const ResDataType& ref() const \ 337 … NW_FORCE_INLINE T& ref() { NW_ASSERT(this->IsValid()); return *reinterpret_cast<T*>(void_ptr()); } in ref() function 340 …NW_FORCE_INLINE const T& ref() const { NW_ASSERT(this->IsValid()); return *reinterpret_cast<const … in ref() function 415 s32 GetLength() const { return ref().len; } in NW_RES_CTOR() 418 const char* GetName() const { return &ref().str[0]; } in GetName() 452 NW_ASSERT( (ref().byteOrder == BOM) || (ref().byteOrder == BOM) ); in NW_RES_CTOR() 454 return *(u8*)(&ref().byteOrder) == 0xFE; in NW_RES_CTOR() [all …]
|
| D | ut_ResDictionary.h | 109 s32 GetCount() const { return ref().numData; } in NW_RES_CTOR() 116 if ( idx < 0 || s32(ref().numData) <= idx ) { return NULL; } 117 return const_cast<void*>( ref().data[idx].ofsData.to_ptr() ); 124 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() ); 131 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() ); 155 ResU32 ref; member 176 s32 GetCount() const { return ref().numData; } in GetCount() 182 NW_MINMAX_ASSERT( idx, 0, static_cast<int>(ref().numData - 1) ); 184 return const_cast<void*>(ref().data[idx + 1].ofsData.to_ptr()); 295 u32 GetLength() const { return ref().length; } in GetLength() [all …]
|
| /NW4C-1.3.3/include/nw/gfx/res/ |
| D | gfx_ResMaterial.h | 231 const nw::ut::FloatColor& GetAmbient() const { return ref().m_AmbientAndVertexColorScale; } in NW_RES_CTOR() 238 f32 GetVertexColorScale() const { return ref().m_AmbientAndVertexColorScale.a; } in GetVertexColorScale() 245 void SetVertexColorScale(f32 scale) { ref().m_AmbientAndVertexColorScale.a = scale; } in SetVertexColorScale() 252 u32 GetAmbientU32() const { return ref().m_AmbientU32; } in GetAmbientU32() 263 ref().m_AmbientAndVertexColorScale.SetColor(r, g, b); in SetAmbient() 264 ref().m_AmbientU32 = ref().m_AmbientAndVertexColorScale.ToPicaU32(); in SetAmbient() 472 return static_cast<CullingMode>(this->ref().m_CullingMode); in NW_RES_FIELD_FLAGS_DECL() 484 this->ref().m_CullingMode = static_cast<u32>(value); in SetCullingMode() 494 internal::SetCmdValue( &ref().m_CommandBuffer[0], table[value], CMD_MASK, CMD_SHIFT ); in SetCullingMode() 576 return static_cast<Mode>(ref().m_Mode); in NW_RES_CTOR() [all …]
|
| D | gfx_ResFragmentShader.h | 406 return TABLE[ref().m_Scale]; in NW_RES_FIELD_PRIMITIVE_DECL() 418 if (scale == 1.0f) { ref().m_Scale = SCALE_1; } in SetScaleF32() 419 else if (scale == 2.0f) { ref().m_Scale = SCALE_2; } in SetScaleF32() 420 else if (scale == 4.0f) { ref().m_Scale = SCALE_4; } in SetScaleF32() 421 else if (scale == 8.0f) { ref().m_Scale = SCALE_8; } in SetScaleF32() 422 else if (scale == 0.25f) { ref().m_Scale = SCALE_0_25; } in SetScaleF32() 423 else if (scale == 0.5f) { ref().m_Scale = SCALE_0_5; } in SetScaleF32() 463 referenceLut.ref().toTargetLut.set_ptr(resImageLookupTable.ptr()); in SetSampler() 640 … return internal::GetCmdValue( ref().m_CommandBuffer[0], CMD_MASK, CMD_SHIFT ) ? true : false; in IsTestEnabled() 652 internal::SetCmdValue( &ref().m_CommandBuffer[0], value, CMD_MASK, CMD_SHIFT ); in SetTestEnabled() [all …]
|
| D | gfx_ResLight.h | 285 referenceLut.ref().toTargetLut.set_ptr(lookupTable.ptr()); in NW_RES_CTOR_INHERIT() 295 return ref().m_DistanceAttenuationStart; in GetDistanceAttenuationStart() 305 return ref().m_DistanceAttenuationEnd; in GetDistanceAttenuationEnd() 313 ref().m_DistanceAttenuationStart = start; in SetDistanceAttenuationStart() 314 SetDistanceAttenuation(ref().m_DistanceAttenuationStart, ref().m_DistanceAttenuationEnd); in SetDistanceAttenuationStart() 322 ref().m_DistanceAttenuationEnd = end; in SetDistanceAttenuationEnd() 323 SetDistanceAttenuation(ref().m_DistanceAttenuationStart, ref().m_DistanceAttenuationEnd); in SetDistanceAttenuationEnd() 342 ref().m_DistanceAttenuationScale = ut::Float20::Float32ToBits20(1.0f / diff); in SetDistanceAttenuation() 343 ref().m_DistanceAttenuationBias = ut::Float20::Float32ToBits20(-start / diff); in SetDistanceAttenuation() 446 … bool IsDistanceAttenuationEnabled() const { return ref().m_IsDistanceAttenuationEnabled != 0.0f; } in NW_RES_CTOR_INHERIT() [all …]
|
| D | gfx_ResTextureMapper.h | 118 return static_cast<MinFilter>(this->ref().m_MinFilter); in NW_RES_CTOR() 127 this->ref().m_MinFilter = static_cast<MinFilter>(value); in SetMinFilter() 250 return static_cast<ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData() 260 return static_cast<const ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData() 268 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in GetTypeInfo() 293 const ut::FloatColor& GetBorderColor() const { return ref().m_BorderColor; } in NW_RES_CTOR_INHERIT() 300 ref().m_BorderColor = value; in SetBorderColor() 301 u32 borderColorU32 = ref().m_BorderColor.ToPicaU32(); in SetBorderColor() 318 ref().m_BorderColor.Set(r, g, b); in SetBorderColor() 319 u32 borderColorU32 = ref().m_BorderColor.ToPicaU32(); in SetBorderColor() [all …]
|
| D | gfx_ResShader.h | 165 const f32* GetValueF32() const { return &ref().m_Value[0]; } in NW_RES_FIELD_PRIMITIVE_DECL() 175 f32* GetValueF32() { return &ref().m_Value[0]; } in GetValueF32() 185 const s32* GetValueS32() const { return reinterpret_cast<const s32*>( &ref().m_Value[0] ); } in GetValueS32() 195 s32* GetValueS32() { return reinterpret_cast<s32*>( &ref().m_Value[0] ); } in GetValueS32() 202 … bool GetValueBool() const { return *reinterpret_cast<const s32*>( &ref().m_Value[0]) != 0; } in GetValueBool() 613 void* GetUniformLocation() { return ref().m_UniformLocation; } in NW_RES_FIELD_FLAGS_DECL() 614 const void* GetUniformLocation() const { return ref().m_UniformLocation; } in GetUniformLocation() 615 …void SetUniformLocation(void* uniformLocation) { ref().m_UniformLocation = uniformLocation;… in SetUniformLocation() 625 return static_cast<ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData() 635 return static_cast<const ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData() [all …]
|
| D | gfx_ResVertex.h | 135 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in GetTypeInfo() 294 u32 GetLocationAddress() const { return ref().m_LocationAddress; } in NW_RES_CTOR_INHERIT() 301 void SetLocationAddress(u32 address) { ref().m_LocationAddress = address; } in SetLocationAddress() 302 …void SetLocationAddress(const void* address) { ref().m_LocationAddress = reinterpret_cast<u32>(add… in SetLocationAddress() 525 u32 GetLocationAddress() const { return ref().m_LocationAddress; } in NW_RES_CTOR() 532 void SetLocationAddress(u32 address) { ref().m_LocationAddress = address; } in SetLocationAddress() 533 …void SetLocationAddress(const void* address) { ref().m_LocationAddress = reinterpret_cast<u32>(add… in SetLocationAddress()
|
| D | gfx_ResSceneObject.h | 117 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in NW_RES_FIELD_STRUCT_DECL() 179 … bool IsBranchVisible() const { return ref().m_Flags & ResSceneNodeData::FLAG_IS_BRANCH_VISIBLE; } in NW_RES_CTOR_INHERIT() 190 ref().m_Flags |= ResSceneNodeData::FLAG_IS_BRANCH_VISIBLE; in SetBranchVisible() 194 ref().m_Flags &= ~ResSceneNodeData::FLAG_IS_BRANCH_VISIBLE; in SetBranchVisible()
|
| /NW4C-1.3.3/sources/libraries/gfx/res/ |
| D | gfx_ResMesh.cpp | 72 u32* command = &mesh.ref().m_IrScaleCommand[0]; in ResSeparateDataShape_SetupVertexIrScale() 74 mesh.ref().m_Flags &= ~(ResMesh::FLAG_HAS_VERTEX_ALPHA | ResMesh::FLAG_HAS_BONE_WEIGHT_W); in ResSeparateDataShape_SetupVertexIrScale() 75 std::memset(command, 0, sizeof(mesh.ref().m_IrScaleCommand)); in ResSeparateDataShape_SetupVertexIrScale() 126 mesh.ref().m_Flags |= ResMesh::FLAG_HAS_VERTEX_ALPHA; in ResSeparateDataShape_SetupVertexIrScale() 130 mesh.ref().m_Flags |= ResMesh::FLAG_HAS_BONE_WEIGHT_W; in ResSeparateDataShape_SetupVertexIrScale() 177 ref().m_ActivateCommandCache = buffer; in Setup() 178 ref().m_ActivateCommandCacheSize = activateCommandSize; in Setup() 180 …ref().m_DeactivateCommandCache = nw::ut::AddOffsetToPtr( ref().m_ActivateCommandCache, activateCom… in Setup() 181 ref().m_DeactivateCommandCacheSize = deactivateCommandSize; in Setup() 183 ref().m_CommandAllocator = allocator; in Setup() [all …]
|
| D | gfx_ResShader.cpp | 46 switch ( this->ref().typeInfo ) in Dereference() 75 switch ( this->ref().typeInfo ) in Dereference() 106 switch ( this->ref().typeInfo ) in Setup() 143 resBinaryShader.ref().m_CommandAllocator = allocator; in ResBinaryShader_Setup() 157 …resBinaryShader.ref().m_ShaderBinaryInfo = new(binaryAnalyzerBuffer) ShaderBinaryInfo( resBinarySh… in ResBinaryShader_Setup() 170 resBinaryShader.ref().m_CommandCache = buffer; in ResBinaryShader_Setup() 171 resBinaryShader.ref().m_CommandCacheSize = writtenSize; in ResBinaryShader_Setup() 233 os::IAllocator* allocator = resBinaryShader.ref().m_CommandAllocator; in Cleanup() 235 if ( resBinaryShader.ref().m_CommandCache != NULL ) in Cleanup() 237 resBinaryShader.ref().m_CommandAllocator->Free( resBinaryShader.ref().m_CommandCache ); in Cleanup() [all …]
|
| D | gfx_ResShape.cpp | 90 resStream.ref().m_MemoryArea = area; in BufferData() 101 resStream.ref().m_MemoryArea = NN_GX_MEM_FCRAM; in BufferData() 124 GLuint area = resStream.ref().m_MemoryArea; in DeleteBuffer() 140 switch ( this->ref().typeInfo ) in Setup() 259 this->ref().m_CommandAllocator = allocator; in Setup() 270 resStream.ref().m_CommandCache = allocator->Alloc(commandSize, 4); in Setup() 271 resStream.ref().m_CommandCacheSize = commandSize; in Setup() 275 resStream.ref().m_MemoryArea = ResIndexStreamData::AREA_NO_MALLOC; in Setup() 305 NW_NULL_ASSERT( indexStream.ref().m_CommandCache ); in SetupDrawCommand() 308 indexStream.ref().m_CommandCache, in SetupDrawCommand() [all …]
|
| D | gfx_ResVertex.cpp | 61 resStream.ref().m_MemoryArea = area; in BufferData() 72 resStream.ref().m_MemoryArea = NN_GX_MEM_FCRAM; in BufferData() 89 GLuint area = resStream.ref().m_MemoryArea; in DeleteBuffer() 156 if (ref().m_BufferObject) in Setup() 163 this->ref().m_BufferObject = bufferID; in Setup() 168 ref().m_MemoryArea = ResVertexStreamBaseData::AREA_NO_MALLOC; in Setup() 205 if (ref().m_BufferObject) in Setup() 211 this->ref().m_BufferObject = bufferID; in Setup() 216 ref().m_MemoryArea = ResVertexStreamBaseData::AREA_NO_MALLOC; in Setup()
|
| D | gfx_ResTextureMapper.cpp | 142 switch ( resImageTexture.ref().typeInfo ) in ResPixelBasedTextureMapper_Setup() 223 new(mapperMemory) ResPixelBasedTextureMapperData(resPixelBasedTextureMapper.ref()); in ResPixelBasedTextureMapper_CloneDynamic() 256 new(samplerMemory) ResStandardTextureSamplerData(resStandardTextureSampler.ref()); in ResPixelBasedTextureMapper_CloneDynamic() 286 new(mapperMemory) ResProceduralTextureMapperData(resProceduralTextureMapper.ref()); in ResProceduralTextureMapper_CloneDynamic() 323 allocator->Free(resPixelBasedTextureMapper.ref().toSampler.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic() 328 allocator->Free(resPixelBasedTextureMapper.ref().toTexture.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic() 348 allocator->Free(resProceduralTextureMapper.ref().toTexture.to_ptr()); in ResProceduralTextureMapper_DestroyDynamic() 360 switch ( this->ref().typeInfo ) in CloneDynamic() 380 resTextureMapper.ref().m_DynamicAllocator = allocator; in CloneDynamic() 392 switch ( this->ref().typeInfo ) in GetMemorySizeForCloneInternal() [all …]
|
| D | gfx_ResUtil.cpp | 68 referenceLut.ref().toTargetLut.set_ptr(resLut.ptr()); in GetReferenceLutTarget() 95 referenceTexture.ref().toTargetTexture.set_ptr(referenceResult.first.ptr()); in GetReferenceTextureTarget() 101 referenceTexture.ref().toTargetTexture.set_ptr(resTexture.ptr()); in GetReferenceTextureTarget() 128 referenceShader.ref().toTargetShader.set_ptr(referenceResult.first.ptr()); in GetReferenceShaderTarget() 134 referenceShader.ref().toTargetShader.set_ptr(resShader.ptr()); in GetReferenceShaderTarget()
|
| D | gfx_ResLookupTable.cpp | 86 referLut.ref().toTargetLut.set_ptr(NULL); in ResReferenceLut_Cleanup() 97 switch ( this->ref().typeInfo ) in Setup() 122 switch ( this->ref().typeInfo ) in Cleanup()
|
| /NW4C-1.3.3/sources/libraries/ut/ |
| D | ut_ResDictionary.cpp | 29 const ResDicLinearData::ResDicNodeData* x = ref().data; in GetIndex() 31 for ( int i = 0; i < s32(ref().numData); ++i ) in GetIndex() 48 const ResDataType& r = ref(); in Get() 56 while(p->ref > x->ref) in Get() 61 u32 wd = u32(x->ref) >> 3; in Get() 62 u32 pos = u32(x->ref) & 7; in Get() 86 const ResDataType& r = this->ref(); in Get() 91 while(p->ref > x->ref) in Get() 96 u32 wd = u32(x->ref) >> 3; in Get() 97 u32 pos = u32(x->ref) & 7; in Get()
|
| /NW4C-1.3.3/sources/libraries/gfx/ |
| D | gfx_ShaderProgram.cpp | 102 NW_NULL_ASSERT( shader.ref().m_CommandCache ); in ActivateDescription() 103 internal::NWUseCmdlist( shader.ref().m_CommandCache, shader.ref().m_CommandCacheSize ); in ActivateDescription() 106 NW_NULL_ASSERT( shaderProgramDescription.ref().m_CommandCache ); in ActivateDescription() 107 …internal::NWUseCmdlist( shaderProgramDescription.ref().m_CommandCache, shaderProgramDescription.re… in ActivateDescription()
|
| D | gfx_RenderContext.cpp | 421 NW_NULL_ASSERT( mesh.ref().m_ActivateCommandCache ); in ActivateVertexAttribute() 429 …internal::NWUseCmdlist( mesh.ref().m_ActivateCommandCache, mesh.ref().m_ActivateCommandCacheSize ); in ActivateVertexAttribute() 430 internal::NWUseCmdlist( mesh.ref().m_IrScaleCommand, sizeof(mesh.ref().m_IrScaleCommand) ); in ActivateVertexAttribute() 432 … const bool hasVertexAlpha = (mesh.ref().m_Flags & ResMesh::FLAG_HAS_VERTEX_ALPHA) ? true : false; in ActivateVertexAttribute() 433 … const bool hasBoneWeightW = (mesh.ref().m_Flags & ResMesh::FLAG_HAS_BONE_WEIGHT_W) ? true : false; in ActivateVertexAttribute() 657 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight() 658 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight() 694 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight() 695 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight() 899 NW_NULL_ASSERT(indexStream.ref().m_CommandCache); in RenderPrimitive() [all …]
|
| /NW4C-1.3.3/include/nw/anim/res/ |
| D | anim_ResAnim.h | 517 … NW_DEPRECATED_FUNCTION(const char* GetTargetName() const) { return ref().toTargetName.to_ptr(); } in NW_RES_FIELD_FLAGS_DECL() 518 …NW_DEPRECATED_FUNCTION(const char* GetBaseObjectPath() const) { return ref().toBaseObjectPath.to_p… in NW_DEPRECATED_FUNCTION() 740 if ( ref().m_Flags & (hasNoCurveFlag) ) \ 746 return reinterpret_cast<const type*>( ref().to##name.to_ptr() ); \ 752 if ( ref().m_Flags & (hasNoCurveFlag) ) \ 758 return reinterpret_cast<type*>( ref().to##name.to_ptr() ); \ 766 if ( ref().m_Flags & (constantFlag) ) \ 768 return ref().constantValue##name; \ 773 reinterpret_cast<const ResFloatCurveData*>( ref().to##name.to_ptr() ), \ 782 if ( ref().m_Flags & (constantFlag) ) \ [all …]
|
| /NW4C-1.3.3/include/nw/gfx/ |
| D | gfx_MaterialState.h | 351 …internal::NWUseCmdlist<sizeof(depthOperation.ref().m_CommandBuffer)>( &depthOperation.ref().m_Comm… in ActivateDepthOperation() 375 …internal::NWUseCmdlist<sizeof(stencilOperation.ref().m_CommandBuffer)>( &stencilOperation.ref().m_… in ActivateStencilOperation() 397 …internal::NWUseCmdlist<sizeof(blendOperation.ref().m_CommandBuffer)>(blendOperation.ref().m_Comman… in ActivateBlendOperation() 599 …internal::NWUseCmdlist<sizeof(rasterization.ref().m_CommandBuffer)>( rasterization.ref().m_Command… in ActivateRasterization() 788 …internal::NWUseCmdlist<sizeof(fragmentShader.ref().m_BufferCommand)>(&(fragmentShader.ref().m_Buff… in ActivateTextureCombiners() 803 …al::NWUseCmdlist<sizeof(textureCombiner.ref().m_CommandBuffer)>( reinterpret_cast<const u32*>(text… in ActivateTextureCombiners() 818 …internal::NWUseCmdlist<sizeof(alphaTest.ref().m_CommandBuffer)>( &alphaTest.ref().m_CommandBuffer[… in ActivateAlphaTest()
|
| /NW4C-1.3.3/include/nw/snd/ |
| D | snd_Util.h | 234 const ReferenceWithSize* ref = GetReference( typeId, count ); in GetReferedItem() local 235 if ( ref == NULL ) return NULL; in GetReferedItem() 236 if ( ref->offset == 0 ) return NULL; in GetReferedItem() 237 return ut::AddOffsetToPtr( origin, ref->offset ); in GetReferedItem() 241 const ReferenceWithSize* ref = GetReference( typeId, count ); in GetReferedItemSize() local 242 if ( ref == NULL ) return 0; in GetReferedItemSize() 243 return ref->size; in GetReferedItemSize() 247 const ReferenceWithSize* ref = GetReference( typeId, count ); in GetReferedItemOffset() local 248 if ( ref == NULL ) return 0; in GetReferedItemOffset() 249 return ref->offset; in GetReferedItemOffset()
|
| /NW4C-1.3.3/sources/libraries/snd/ |
| D | snd_BankFile.cpp | 114 const Util::Reference& ref = GetRegionTableAddress( regionTableIndex ); in GetRegion() local 115 return ut::AddOffsetToPtr( this, ref.offset ); in GetRegion() 247 const Util::Reference& ref = table.item[ programNo ]; in GetInstrument() local 249 switch ( ref.typeId ) in GetInstrument() 367 const Util::Reference& ref = *reinterpret_cast<const Util::Reference*>( in GetAdshrCurve() local 370 ut::AddOffsetToPtr( &ref, ref.offset ) ); in GetAdshrCurve()
|